GetOrphs
- 1 Minute to read
- Print
- DarkLight
- PDF
GetOrphs
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
List orphan files within the project
Key | Value(s) | Description |
---|---|---|
method | "GetOrphs" | Lists orphan files within the project |
throwError | true/false | Optional. Default = true. If true, an error will be generated if any orphan files are found. |
delete | true/false | Optional. Default = false If true, any orphan files that are found will be deleted. |
Orphan files are files within the project folder that are not associated with any object in the mongo database.
Sample method
{
"method": "GetOrphs"
"delete": false
"throwError": true
}
Sample return
Any orphan files that are present will be indicated in the list[] section.
Details of specific orphan files can be queried using the ReadMongo command:
{ "method": "ReadMongo", "query":{"fileStub":"file_638443935223925390_2135"}}
This will return general file information for the fileStub:
Was this article helpful?