# Trash and large files

Source: https://frameleaf.app/docs/using/trash/

Deleted something by mistake? **Trash** keeps the photos and videos you delete, so you can bring them back exactly as they were. **Large files** shows your biggest originals, so you can free up space where it counts.

Open the trash from **Trash** in the sidebar, or from **Settings → Trash**.

## How long items stay

Deleted items are kept for **30 days** by default, then removed permanently. Your administrator sets the number of days in the server's trash settings, and can turn the trash off altogether. With the trash off, deleting is permanent straight away. Keep **Ask before deleting forever** on in [Your preferences](https://frameleaf.app/docs/using/account-settings/#safety), under **Look & playback**, to be asked before anything is deleted for good.

The summary at the top of the trash shows how many items are there, the combined size of their originals, and how long they're kept.

## What the trash shows

- **Only your own items.** Nobody else's trash is ever listed, whatever their role.
- **Locked items once you unlock.** While your session is locked, [Locked](https://frameleaf.app/docs/using/private-content/) items stay safely in the trash, out of view and out of the count, and **Empty your trash** leaves them alone. They come back into view when you unlock.
- **Nothing your Locked rules hide**, such as people, pets and tags you've chosen to keep private, while your session is locked.
- **Missing external library files.** When a file in an [external library](https://frameleaf.app/docs/using/library/#photos-from-external-libraries) disappears from disk, the next library scan puts it in the trash with a note, and brings it back automatically when the file is found again. These are listed for information, so the trash doesn't restore or delete them. An item you trashed yourself whose file went missing later is restored or deleted like any other.

## Restore

**Restore** one item, your selection, or everything. Items go back exactly where they were, with their albums, favourites, archive, tags, stacks and lock, because moving to the trash keeps all of them.

### Bring photos back by uploading them

Deleted a photo on the server but still have it on your phone or computer? Turn on **Let uploads bring back deleted photos** in **Your preferences → Look & playback → Safety**. For the next 24 hours, uploading a photo whose file matches one in your trash restores that photo, with its albums and people, instead of skipping it as already uploaded. The switch turns itself off when the 24 hours are up, and the page shows when that is.

Only your own trash is checked. A photo that's still in your library, or one already waiting to be removed for good, is skipped as a duplicate as usual.

## Delete permanently

**Delete selected** and **Empty your trash** both show you how many items will go, and which ones, before anything happens, so you're always in control.

1. Select items and choose **Delete selected**, or choose **Empty your trash**.
2. Review the list.
3. Type `DELETE` and the number of items to confirm.

**Empty your trash** always covers your whole visible trash, whatever filters you've applied.

Frameleaf deletes only what you reviewed. If anything changes before you confirm, such as an item restored in another tab, a new item trashed, an item locked or unlocked, or your session locking, nothing is deleted and you get a fresh list to review.

## Other tabs and devices

What you trash, restore or delete in one tab or on another device shows up everywhere else without a reload:

- An item you move to the trash appears in the trash in your other open tabs, and leaves their timelines.
- A restored item comes back into your other open timelines. A very large restore reloads the timeline instead.
- If the item open in a viewer is trashed, restored or deleted elsewhere, the viewer moves to the next item, or closes when there isn't one.

## Large files

Go to **Settings → Tools → Large files** to see your largest originals. It also lists what partners share with you, and each item's owner decides whether it goes to the trash.

1. Select the items you want to get rid of.
2. Choose **Move selected to trash** and review the list.
3. Confirm. If you change your mind, **Undo** restores exactly the items that moved.

**Move selected to trash** appears whenever the trash is turned on, so everything you move here can be undone.

### Recent utility activity

**Recent utility activity** keeps a history of what you moved to the trash, and undid, from Large files: each change with its items, their sizes and the time. It's kept for a year, up to 500 changes, and deleted with your account. Locked items are named only after you unlock, and permanently deleted items are only counted.

## How much space you get back

Sizes show each original's size. The space you get back on disk can differ:

- **Permanent deletion happens in the background.** The trash page says how many permanently deleted items are still being removed.
- **Shared originals stay until their last user goes.** Frameleaf stores identical files once, so an original that another account's item still uses stays on disk. The review tells you how many of your chosen items share their original, and how much of the total will stay on disk. See [Duplicates](https://frameleaf.app/docs/using/duplicates/#saving-disk-space-in-a-family-library).
