--- title: "GetOrphs" slug: "getorphs" updated: 2024-03-22T11:53:26Z published: 2024-03-22T11:53:26Z canonical: "docs.datajet.app/getorphs" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # GetOrphs 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 ```json { "method": "GetOrphs" "delete": false "throwError": true } ``` #### Sample return ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1711104341065.png) Any orphan files that are present will be indicated in the list[] section. ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1711104528286.png) Details of specific orphan files can be queried using the ReadMongo command: ```json { "method": "ReadMongo", "query":{"fileStub":"file_638443935223925390_2135"}} ``` This will return general file information for the fileStub: ![](https://cdn.document360.io/73b6469b-c1e4-47e9-aa65-986c8ebd17ca/Images/Documentation/image-1711104943124.png)