Nextcloud keeps deleted files in a trash bin before permanent deletion, giving users a chance to recover documents, folders, photos, and other items removed from the Files app by mistake. A deleted file can be restored from Deleted files while it remains in the account's trash bin.

The Deleted files view belongs to the Files app in the Nextcloud web interface. Restoration normally returns an item to its original folder. If that folder no longer exists or is not writable, Nextcloud restores the item to the top level of All files instead. An existing file with the same name is preserved, and the restored copy receives a unique name.

Trash retention depends on the server's deleted-files policy and available storage. The trash bin is not a replacement for backups, so an expired or permanently deleted item requires another recovery source. An ordinary signed-in account can restore its own files without administrator access.

Steps to restore a deleted file in Nextcloud:

  1. Select Deleted files in the sidebar of your signed-in Files app.

    If the sidebar is hidden, its toggle is at the upper left of the file list, beside New. A missing shared file may be in its owner's trash bin; a copy in the deleting user's trash is not guaranteed.

  2. Hide the sidebar with the button beside the file list if it covers the filenames.

    On wider windows the sidebar can remain visible without covering the list.

    The Delete permanently and Empty deleted files actions remove items from the trash bin and prevent normal restoration. Those actions are not needed for recovery.

  3. Click Restore beside the file you want to recover.

    The original location and deletion time help distinguish entries. A restored item disappears from this list.

  4. Expand the Files sidebar with the button at the upper left of the list.

    If the sidebar is already visible, All files is available directly. The trash bin is empty here because it contained only one file.

  5. Select All files in the sidebar.
  6. Hide the sidebar with the button beside the file list if it covers the restored filename.
  7. Open the restored file from its original folder.

    A file deleted from the top level reappears directly in All files. If its original folder is gone or no longer writable, the restored file also appears at that level.

  8. Confirm that the restored file displays its expected contents.

    Project-notes.txt is open again with its meeting notes intact. A filename alone does not confirm that the recovered content is the content you need. If the file needs an earlier revision, see How to restore a previous file version in Nextcloud.

Share this guide