# Deleted files

A file you delete stays on the Recently deleted list for 7 days, or 90 days on Pro, and you can restore it from there.

## Deleting files and folders

Right-click a file or folder in the sidebar and choose **Delete**, or select it and press ⌫ on a Mac, Delete elsewhere. To delete several at once, select them first: Shift-click selects a range, and ⌘-click (Ctrl-click elsewhere) adds one row. The menu then reads **Delete 3 items**.

Deleting a folder deletes everything in it. Deleting a picture also deletes its notes file (`Name.metadata.md`).

After a delete, a message with **Undo** appears for 10 seconds.

![The message after a delete.](https://dunjii.com/docs-assets/your-files/delete-toast.webp)

## The delete confirmation

Dunjii asks before it deletes anything, and the dialog says what the delete affects:

- For a folder, how much goes with it: "Removes 320 files in 4 subfolders."
- Which documents outside the selection link to what you are deleting, by path: "Deleting will break links in 1 doc". When nothing does, it says "Nothing else references this file."
- When a delete covers more than 2,000 files, Dunjii skips the link check and says so.

Click **Delete** to go ahead, or **Cancel**.

![Deleting an NPC that a scene links to.](https://dunjii.com/docs-assets/your-files/delete-dialog.webp)

## Recently deleted

Dunjii has no separate trash. Deleted files are listed on the **Recently deleted** tab of the History page: click **History** in the sidebar, then **Recently deleted**. Search (⌘K on a Mac, Ctrl+K elsewhere) finds the same list as **Deleted files**.

Each row shows the file's path, its number of versions, who deleted it, and **Last seen**, the last time the file changed before it was deleted. Type a path in **Folder** to list only the files deleted from one folder. A folder's own **Activity** tab lists the files deleted from it too.

![The Recently deleted tab, narrowed to one session folder.](https://dunjii.com/docs-assets/your-files/recently-deleted.webp)

## Restoring a deleted file

Click **Restore** beside the file. Dunjii opens the file's page as it was when you deleted it, under the note **This file was deleted.**

- **Restore it** puts the file back where it was.
- **Earlier versions** steps through the file's older versions, so you can restore one of those instead. See [Version history](https://dunjii.com/docs/your-files/version-history.md).

A picture comes back with its notes file.

To restore a deleted folder, open the folder it was in and choose its **Activity** tab, where the deleted folder is one row. Click the row, click **Show files** to see what will come back, then click **Restore**.

![The page of a deleted NPC.](https://dunjii.com/docs-assets/your-files/deleted-file.webp)

## How long deleted files are kept

| Plan | Kept for |
| --- | --- |
| Free | 7 days |
| Pro | 90 days |

The time counts from when you deleted the file. After that Dunjii deletes the file and all its versions for good, and it leaves **Recently deleted**. You can't empty **Recently deleted**, or delete one file from it, any sooner.

If you use the [desktop app](https://dunjii.com/docs/your-files/desktop-app.md), a file deleted in Dunjii is moved into `.dunjii/trash` in the folder on your computer, and kept there for 14 days.
