← Articles

How to restore deleted files and folders

Files and folders deleted in NeedleSearch stay in the trash for 30 days before automatic removal.

Where the trash is

In Files, open the toolbar menu and choose Trash (/files/trash).

Getting files back

Use Undo in the deletion notice. To recover something later, select it in the trash and choose Restore. You can also permanently delete a selection or empty the trash.

Open a deleted folder to inspect its contents. Restore the folder to work with those files.

The Delete key (or Cmd/Ctrl+Backspace) sends items to the trash. In the trash, it deletes permanently after confirmation.

What the trash changes elsewhere

Trashed files are excluded from search, citations, downloads and the storage quota. Restored files become searchable without reprocessing.

In the API

In /v1 and MCP, pass trash: true to use the trash. The default is permanent deletion. Use GET /v1/trash to list items and POST /v1/files/restore to recover them.

Questions and answers

How long do deleted files stay in the trash?

30 days, then they are removed automatically. Undo in the deletion notice recovers items immediately.

Where is the trash and how do I restore something?

In Files, open the toolbar menu and choose Trash. Select the item and choose Restore. Restored files become searchable again without reprocessing.

Do trashed files still show up in search?

No. Trashed files are excluded from search, citations, downloads and the storage quota. In /v1 and MCP, pass trash set to true to use the trash; the default is permanent deletion.