GetOrphs
  • 1 Minute to read
  • Dark
    Light
  • PDF

GetOrphs

  • Dark
    Light
  • PDF

Article summary

List orphan files within the project

KeyValue(s)Description
method"GetOrphs"Lists orphan files within the project
throwErrortrue/falseOptional. Default = true.
If true, an error will be generated if any orphan files are found.
deletetrue/falseOptional.  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?

What's Next