# Trash and restore: questions and answers

Short answers about removing files and folders and getting them back:
moving to the trash, Undo, the Trash page, restoring and its rules,
deleting for good, the 30 days, what happens to public links, and the
organization folder's trash. Each answer links to the section of
[Trash and restore](../files/trash.md) that owns the rule.

## The basics of the trash

### What happens when I delete a file in Talewright?

It is not deleted. It moves to the trash of its workspace, or of the
organization folder, and waits there for 30 days. During that time it can be
restored, and it comes back as it was.

More: [Trash and restore, Summary](../files/trash.md#summary)

### Is there a recycle bin in Talewright?

Yes. It is called "Trash". Each workspace has its own, and the organization
folder has one too.

More: [Trash and restore, Summary](../files/trash.md#summary)

### Is the trash emptied automatically?

Yes, item by item. Each file or folder is deleted for good 30 days after
it was moved to the trash, with every version.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### Can I recover a file I deleted by mistake?

Yes, for 30 days. Open "Trash" and choose "Restore" on its row. Right
after deleting, "Undo" does the same.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Who can move files to the trash?

Everyone who may change the file: every member of the workspace, and in
the organization folder the organization's owners and admins.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Do I need a verified email address to trash or restore files?

No. No verified email is needed to trash, to restore or to delete for good
in a browser.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Does each workspace have its own trash?

Yes. Each workspace has its own trash, and the organization folder has one too.

More: [Trash and restore, Summary](../files/trash.md#summary)

### Can other workspaces see what is in my workspace's trash?

No. The trash belongs to its workspace. Someone outside the workspace who
asks for its trash gets `404 NOT_FOUND`.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### What is a "live" file?

A file or folder that is not in the trash.

More: [Trash and restore, Moving a file to the trash](../files/trash.md#moving-a-file-to-the-trash)

### Is anything thrown away when a file goes to the trash?

No. Nothing is thrown away yet. The file remembers its folder, its name,
its status, its details, its tags and field values, its own general access
and every version.

More: [Trash and restore, Moving a file to the trash](../files/trash.md#moving-a-file-to-the-trash)

### What is the difference between "Move to trash" and "Delete permanently"?

"Move to trash" can be undone for 30 days, and everyone who may change a
file may do it. "Delete permanently" removes a trashed item for good,
cannot be undone, and is for owners and admins in a browser.

More: [Trash and restore, Summary](../files/trash.md#summary)

### Can I delete a file without it going to the trash first?

No. Only something that is in the trash can be deleted for good. There is
no way to delete a live file for good in one step.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Does a file in the trash still show up in folders and search?

No. A trashed file leaves every listing, search result and folder count,
and it is no longer named as a duplicate of other files.

More: [Trash and restore, Moving a file to the trash](../files/trash.md#moving-a-file-to-the-trash)

### What do `deletedAt` and `purgeAfter` on a file say?

`deletedAt` is the time the file was trashed. `purgeAfter` is 30 days
later: the time it is deleted for good. Both are `null` on a live file.

More: [Trash and restore, Moving a file to the trash](../files/trash.md#moving-a-file-to-the-trash)

## Moving files to the trash in the app

### How do I move a file to the trash?

Choose "Move to trash" in the file's menu, in the selection bar, on the
file's page above the preview, or in the command palette. Cmd+Backspace on
a Mac or Ctrl+Backspace elsewhere does the same for the selection or the
open file.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### What is the keyboard shortcut for moving a file to the trash?

Cmd+Backspace on a Mac, Ctrl+Backspace elsewhere. It acts on the selection
or the open file.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Does the app ask "Are you sure?" before it trashes a file?

No. There is no confirmation. The item is trashed at once, and the message
offers "Undo".

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### What does "Moved {name} to Trash" mean?

The item is in the trash now. The message offers "Undo" for 8 seconds.
When several items were trashed it reads, for example, "Moved 3 files to
Trash", "Moved 2 folders to Trash" or "Moved 5 items to Trash".

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### How do I move several files to the trash at once?

Select them and choose "Move to trash" in the bar "Selected files", or
press Cmd+Backspace or Ctrl+Backspace.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### What happens when I trash several items and some of them fail?

Each item is trashed by itself. The others are still trashed, and the app
says what went wrong with the ones that failed.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Where does the app take me after I trash a file from its page?

The file's page closes and the app opens the folder the file was in.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### What happens when I trash the folder I have open?

The open folder is replaced by its parent folder.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Why do I not see "Move to trash" on a file?

"Move to trash" is offered wherever you may change an item. A member does
not see it on organization folder files, which only owners and admins change.

More: [Trash and restore, The organization folder's trash in the app](../files/trash.md#the-organization-folders-trash-in-the-app)

### What does "Already in Trash: {name}" mean?

Someone else trashed the item a moment before you. It is not trashed
again, and no "Undo" is offered for it: "Undo" restores only what you
trashed yourself.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Why was my file not trashed because it "changed since you opened it"?

Someone changed the item before you trashed it, so your trash was not
applied. The message reads "{name} changed since you opened it. It is up
to date now; try again." Trash it again if you still want to.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Moving a file to the trash failed with "Could not delete {name}." What now?

Try again. Moving the item to the trash failed for another reason than a
stale page or the organization folder's permissions, and the item stays
where it was.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Why is "Move to trash" disabled on a file's page?

The file changed since you opened it. The page shows "This file changed
since you opened it. Reloading keeps your unsaved edits." Choose "Reload
latest", then trash the file.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Can a member trash a file that someone else uploaded?

Yes. In a workspace every member may trash and restore every file. Moving
to the trash is an everyday action.

More: [Trash and restore, Summary](../files/trash.md#summary)

### Can a member trash a public file?

Yes. Its public link stops at once, and the app says "1 public link
stopped working until restored." below the message.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Is my selection kept after I move items to the trash?

No. The selection is cleared.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

## Undo after trashing

### How do I undo moving a file to the trash?

Choose "Undo" in the message that appears, or press Cmd+Z or Ctrl+Z. The
app says "Restored {name}".

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### I missed the Undo after trashing a file. Is it too late?

No. Open "Trash" and choose "Restore" on the item's row. That works for 30
days.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Does "Undo" restore something a colleague trashed?

No. "Undo" restores only what you trashed yourself. Restore a colleague's
item from the Trash page.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Why did Undo refuse to bring my file back?

Undoing would make files public and you may not do that. The app shows
"That would make 1 file public. Only an owner or admin can make files
public." Ask an owner or admin to restore it.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Undo says some items could not be restored. What do I do?

Open "Trash" and restore them there. The message "Some items could not be
restored. Restore them from Trash." means Undo could not bring every item
back.

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

## Moving folders to the trash

### What happens to the files in a folder when I move the folder to the trash?

They go with it. The folder goes to the trash together with every live
folder and every live file inside it, at every level, and they come back
with it.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### How does a trashed folder show in the trash?

As one item. The folder and what it took along are restored together and
deleted for good together. The files inside are not listed separately.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### Can I create a new folder with the name of one I just trashed?

Yes. The folder's name is free at once. A new folder with that name can be
created in the same place.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### Can I trash an empty folder?

Yes. An empty folder can be trashed like any other.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### I trashed a file and then its folder. Are they one item in the trash?

No. Files and folders that were already in the trash on their own stay
separate items. They are not part of the folder's item, and a restore of
the folder does not bring them back.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### What does `publicLinkCount` say when a folder is trashed?

How many public links stopped because of it. Restricted files are not
counted.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### What happens to a public folder's gallery when the folder is trashed?

It is gone, and the public links of the files inside stop. A restore
brings both back.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### I deleted the wrong folder. How do I get everything back?

Choose "Undo" right away, or open "Trash" and choose "Restore" on the
folder's row. The folder comes back with everything that was in it.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Can I trash a folder but keep some of its files?

Only by moving those files out of the folder first. A trashed folder
takes every live file inside it along.

More: [Trash and restore, Moving a folder to the trash](../files/trash.md#moving-a-folder-to-the-trash)

### Who can move a folder to the trash?

Every member of the workspace. In the organization folder, owners and admins
of the organization.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

## What a trashed file can and cannot do

### Can I open a file that is in the trash?

Yes. A trashed file has its own page. It says "This file is in the trash.
It will be deleted permanently on {date and time}." and offers "Restore".
The page shows no preview and no "Download" button.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Can I rename or edit a file while it is in the trash?

No. Changing its name, details, tags, folder or field values is refused
with `409 CONFLICT`, reason `IN_TRASH`. Restore it first.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### Can I change the status of a file in the trash?

No. Setting its status is refused with `409 CONFLICT`, reason `IN_TRASH`,
for the whole batch.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### Can I make a trashed file public or restricted?

No. That is refused with `409 CONFLICT`, reason `IN_TRASH`.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### Does a trashed file keep its thumbnail?

Not while it is there. A trashed file has no `thumbnailURL`, no
`previewURL` and no `publicURL`, and its page shows no preview.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### What does a trashed file's `visibility` read?

What it was. Its own `visibility` still reads the same, but `public` is
`false` and it has no `publicURL`.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### What do the "Details" of a trashed file show?

"Location" on the left, "Properties" on the right and "History" last,
across both columns.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### What happens to a trashed file's field value when that field is deleted?

The value is cleared, on files in the trash as well as on live files. A
restored file comes back without it.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### What happens to a trashed file when its status is deleted?

It comes back without a status when it is restored.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### Can I move a trashed folder or change who can open it?

No. A trashed folder refuses renaming, moving and a change of general
access with `409 CONFLICT`, reason `IN_TRASH`.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

### Can I browse inside a trashed folder?

No. A trashed folder is one row in the trash, and listing its subfolders
answers `404 NOT_FOUND`. Its line shows how many folders and files it took
along.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### Is a trashed file still named as a duplicate of other files?

No. From the moment it is trashed it is no longer named as a duplicate.

More: [Trash and restore, Moving a file to the trash](../files/trash.md#moving-a-file-to-the-trash)

## Trash and links

### What happens to a file's public link when I move the file to the trash?

It stops at once. The public link of a trashed file answers "not found",
exactly like a link that never existed. This holds whether the file was
public by itself or through a public folder.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### Does a public link work again after I restore the file?

Yes, if the file is public again. The address is kept, so the same public
link works again.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### Does a restored file get a new public link?

No. The address is kept. After a restore the same public link works again,
if the file is public again.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### What happens to temporary download links when a file is trashed?

They stop at once and for good. A temporary download or preview link made
before the file was trashed does not come back with a restore. Ask for a
new one.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### What does someone see when they open the public link of a trashed file?

"Not found", exactly like a link that never existed.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### Our website shows a file that I moved to the trash. What happens there?

Its public link answers "not found" from the moment the file is trashed.
Restore the file to bring the same link back.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

### How do I know that trashing something stopped public links?

The app says so below the message: "1 public link stopped working until
restored." or "{n} public links stopped working until restored."

More: [Trash and restore, Moving to the trash](../files/trash.md#moving-to-the-trash)

### Does a ZIP link made earlier still include a file I trashed since?

No. The ZIP link still downloads, without the files that were trashed
since.

More: [Trash and restore, What happens to links](../files/trash.md#what-happens-to-links)

## The Trash page

### Where is the trash in the app?

"Trash" is in the navigation of Files & Assets, below "All files" and
"Suggestions". It opens the trash of the workspace you are in.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What does the Trash page list?

What was trashed on its own: single files, and folders with what they took
along. Trashed folders are listed first, then trashed files.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What does the line under a trashed file mean?

For example: "Image · From Campaigns / Spring · Deleted Nov 14, 2026, 3:05
PM · Kept until Dec 14, 2026". It gives the kind of file, where it was,
when it was trashed and the day it is deleted for good.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What does "Kept until" mean in the trash?

The day the item is deleted for good.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What does "From the top level" mean in the trash?

The file was at the top level of the workspace or organization folder, in no
folder, when it was trashed.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What do the counts on a trashed folder mean?

How many folders and files the folder took along, at every level. Its line
reads, for example, "Folder · 2 folders · 14 files · Deleted ... · Kept
until ...".

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### Why is a file I trashed not listed in the trash?

There are three possible reasons. It went to the trash inside a folder,
and such a file is not listed separately: the folder stands for it. Or its
30 days are over. Or an owner or admin deleted it for good.

More: [Trash and restore, The trash listing](../files/trash.md#the-trash-listing)

### In which order does the trash list items?

Folders first, most recently trashed first. Then files, newest first.

More: [Trash and restore, The trash listing](../files/trash.md#the-trash-listing)

### How many items does the Trash page show at first?

50 files. "Load more" shows the next 50.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What does "Trash is empty." mean?

Nothing is in the trash of this workspace or organization folder.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### Can I search or filter the Trash page?

No. The Trash page has no search box and no filters. Through the API, a
listing with `trash=true` and `q` searches the trashed files.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Does the Trash page show who deleted an item?

No. A row shows when the item was deleted and until when it is kept. Who
trashed, restored or deleted something is recorded in the audit trail.

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### Which kinds of file does the Trash page name?

"Image", "Video", "PDF", "Font", "Design file" or "File".

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### Can every member open the Trash page of a workspace?

Yes. Every member of the workspace can see its trash and restore from it.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

## Restoring files and folders

### How do I restore a file from the trash?

Open "Trash" and choose "Restore" on the file's row. The app says
"Restored {name}".

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### How do I restore several items from the trash at once?

Tick their boxes ("Select {name}") and choose "Restore" in the bar
"Selected items". Shift-click selects a range, and "Clear selection" or
Escape clears it.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Where does a restored file go?

Back to the folder it was in. If that folder is no longer live, because it
was trashed or deleted for good in the meantime, the file returns to the
top level.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### What comes back with a restored file?

Its name, status, details, tags, field values, own general access and
every version. It is listed, searchable and counted again at once.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### Who can restore a file from the trash?

Everyone who may change it: every member of the workspace, and in the
organization folder the organization's owners and admins.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Can I restore a file that a colleague moved to the trash?

Yes. Every member of the workspace can restore what is in its trash,
whoever trashed it.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Can I restore a file to a different folder than it was in?

No. A restore puts the file back where it was, or at the top level when
that folder is gone. Move the file after restoring it.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### Can a restore fail because a file of the same name is already there?

No. File names need not be unique, so a restore never fails because of a
name.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### Why did my restored file end up at the top level?

Its folder is no longer live: the folder was trashed or deleted for good
while the file was in the trash.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### What comes back when I restore a folder?

The folder and exactly what it took along: every subfolder and file that
went to the trash with it, in the same arrangement.

More: [Trash and restore, Restoring a folder](../files/trash.md#restoring-a-folder)

### Does restoring a folder bring back files I trashed before the folder?

No. Items that were trashed on their own before the folder was stay in the
trash as their own items. Restore them separately.

More: [Trash and restore, Restoring a folder](../files/trash.md#restoring-a-folder)

### Can I restore just one file out of a trashed folder?

No. A file that went to the trash inside a folder is part of the folder's
item. Restore the folder, then trash what you did not want back.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### Can I restore a subfolder without its parent folder?

Not when it went to the trash along with its parent. Only a folder trashed
on its own can be restored. Restore the parent.

More: [Trash and restore, Restoring a folder](../files/trash.md#restoring-a-folder)

### Where does a restored folder go when its parent folder is gone?

To the top level. It returns into its parent folder only if that is live
and the result still fits within 16 levels.

More: [Trash and restore, Restoring a folder](../files/trash.md#restoring-a-folder)

### Is a folder restore all or nothing?

Yes. If the restore is refused, nothing comes back.

More: [Trash and restore, Restoring a folder](../files/trash.md#restoring-a-folder)

### Why is my restored folder called "Campaigns (2)"?

Another folder took the name "Campaigns" in the same place while yours was
in the trash. A restore is not refused for that: the restored folder gets
a numbered name instead. Rename either of them afterwards.

More: [Trash and restore, Name conflicts on restore](../files/trash.md#name-conflicts-on-restore)

### Does restoring a folder rename the folder that took its name?

No. The folder that took the name keeps it. Nothing else is renamed.

More: [Trash and restore, Name conflicts on restore](../files/trash.md#name-conflicts-on-restore)

### What name does a restored folder get when "(2)" is taken too?

The next number: "Campaigns (3)", and so on.

More: [Trash and restore, Name conflicts on restore](../files/trash.md#name-conflicts-on-restore)

### Does the app tell me when a restored folder got a numbered name?

No. The folder comes back with a number, such as "Campaigns (2)", and the
app does not point this out.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Do restored files get numbered names too?

No. Files never get numbered names. Two files with the same name can sit
in one folder.

More: [Trash and restore, Name conflicts on restore](../files/trash.md#name-conflicts-on-restore)

### Do the subfolders inside a restored folder keep their names?

Yes. Only the restored folder itself can get a numbered name.

More: [Trash and restore, Name conflicts on restore](../files/trash.md#name-conflicts-on-restore)

### What does a trashed file's own page offer?

It says "This file is in the trash. It will be deleted permanently on
{date and time}." and offers "Restore".

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### What does "This file and its folder {folder} are in the trash." mean?

A folder above the file is in the trash, and the file went with it. The
page offers "Restore folder", which restores the folder with everything it
took along.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### What does "You cannot restore {name}." mean?

The restore was refused in a workspace.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### What does "Could not restore the file." mean?

A restore from the trashed file's own page failed for another reason than
access. Try again. For a folder the message is "Could not restore the
folder."

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### What happens when two people restore the same folder?

The first restores it. The second gets `409 CONFLICT`, reason
`NOT_IN_TRASH`, and the app says "{name} is no longer in the trash."

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Does restoring a file change its lock version?

Yes. `deletedAt` and `purgeAfter` are cleared, and its `lockVersion` goes
up by one.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### Do I get my favorite back when a trashed file is restored?

Yes. Favorites of a trashed file or folder are hidden until it is
restored.

More: [Trash and restore, What a trashed file can and cannot do](../files/trash.md#what-a-trashed-file-can-and-cannot-do)

## Restoring and public files

### Is a file public again after I restore it from the trash?

Yes, when it was public when it was trashed. It comes back public, at the
same public link, for anyone who may restore it. Nobody is asked to
confirm.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### Can a member restore a file that was public when it was trashed?

Yes. A file that was public when it went to the trash comes back public
for anyone who may restore it, a member of the workspace included.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### Why does the trash say my restore would make a file public?

The file was not public when it was trashed, but it would be public where
it comes back to. For example, its folder was moved under a public folder
or made public while the file was in the trash. Only an owner or admin can
restore it.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### What can I do when my restore is refused for making files public?

Ask an owner or admin to restore the item. It stays in the trash until
then.

More: [Trash and restore, Restoring in the app](../files/trash.md#restoring-in-the-app)

### Are owners and admins asked to confirm a restore that makes files public?

No. For them a restore always goes through, and the files that end up
public are public.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### Can a restore make a file public that was never public?

Only when an owner or admin restores it. For a member, and for a
credential without `files:approve`, such a restore is refused.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### What happens to a public file whose status stopped allowing public use while it was in the trash?

It comes back restricted, without a public link. That is never a reason to
refuse the restore.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### A folder holds one public file and one that would newly become public. Can a member restore it?

No. The whole folder stays in the trash until an owner or admin restores
it. A refused restore restores nothing.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### What does `becomePublic` count on a refused restore?

Only the files that would newly become public. Files that were public when
trashed are not counted.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### Can a member restore a restricted file into a folder that became public meanwhile?

Yes, when the file's status does not allow public use. It comes back
restricted, so nothing becomes public.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Does a file that was public through its folder come back public when the folder is restored?

Yes. That covers a file that was public through a public folder, also when
that folder went to the trash with it.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

### What does a credential get when its restore would newly make files public?

Without `files:approve`: `403 FORBIDDEN`, reason `INSUFFICIENT_SCOPE`.
With it but acting for a member: `403 FORBIDDEN`, reason
`MAKES_FILES_PUBLIC`. With it for an owner or admin whose email is not
verified: `403 EMAIL_NOT_VERIFIED`.

More: [Trash and restore, The restore rule](../files/trash.md#the-restore-rule)

## Deleting for good

### How do I permanently delete a file?

Move it to the trash first. Then an owner or admin opens "Trash", chooses
"Delete permanently" on its row and confirms in the dialog.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### Who can delete files permanently?

Owners and admins, and only in a browser. Members trash and restore.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Why is there no "Delete permanently" button for me?

You are a member. Members do not see "Delete permanently" or "Empty
trash". Owners and admins delete for good.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### Can I recover a permanently deleted file?

No. Deleting for good cannot be undone. From the moment it is accepted the
item can no longer be restored.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### What does the "Delete {name} permanently?" dialog say?

"It cannot be restored afterwards." "Delete permanently" confirms and
"Cancel" closes the dialog.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### What does "Deleting permanently" on a row of the trash mean?

The deletion was accepted and is being carried out. The row reads that
until it disappears.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### What exactly is removed when a file is deleted for good?

The file with every version, its previews and its stored content.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Can I permanently delete several trashed items at once?

Not as a selection. There is no way to select several rows and delete them
permanently together. Delete them one by one, or empty the trash.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### Can I delete one file for good out of a trashed folder?

No. A file that went to the trash inside a folder cannot be deleted for
good by itself. Delete the folder.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### What happens when a trashed folder is deleted for good?

The folder and everything it took along are deleted.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Is a permanently deleted file gone immediately?

Yes, for everyone. It leaves the trash listing, and reading the file, its
versions and their content answers `404 NOT_FOUND`. The removal itself is
carried out in the background.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Does deleting a file for good affect another file with the same content?

No. The other file is untouched. Each file keeps its own content.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### What does "purge" mean?

Deleting for good. The API's operations are named `purge`, and
`purgeAfter` is the time after which a trashed item is purged by itself.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Can a member who uploaded a file delete it for good?

No. Having uploaded a file gives no extra rights. Only owners and admins
delete for good.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Do I need a verified email address to delete files permanently?

No. No verified email is needed to delete for good in a browser.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Is it recorded who deleted a file for good?

Yes. The audit trail records the owner or admin who asked for it, and
then the removal itself, without a person.

More: [Audit trail, Files](../reference/audit-trail.md#files)

## Emptying the trash

### How do I empty the trash?

As an owner or admin, open "Trash" and choose "Empty trash", above the
list while the trash holds anything. Confirm in the dialog "Empty the
trash?".

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### What does "Empty trash" delete?

Everything in the trash of one workspace, or of the organization folder, in
one step. The dialog says "Everything in the trash is deleted permanently
and cannot be restored."

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Does emptying the trash of one workspace touch other workspaces?

No. It empties the trash of one workspace, or of the organization folder.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### Why is there no "Empty trash" button?

It is shown to owners and admins, above the list, while the trash holds
anything.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### What does "Emptying the trash" mean?

Emptying was accepted. Every row reads "Deleting permanently" until it
disappears.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### Can I undo emptying the trash?

No. Everything in the trash is deleted permanently and cannot be restored.

More: [Trash and restore, Deleting for good in the app](../files/trash.md#deleting-for-good-in-the-app)

### What happens when someone restores an item while the trash is being emptied?

Each item is either restored or deleted, never half of each. The two are
handled one after the other.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Do I have to empty the trash myself?

No. Each item is deleted for good by itself 30 days after it was trashed.
Emptying the trash only does that earlier.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

## The 30 days

### When exactly is a trashed file deleted for good?

At its `purgeAfter`, 30 days after the moment it was trashed. From then it
can no longer be restored and leaves the trash listing. Shortly after, it
is removed for good.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### Can I change how long files stay in the trash?

No. It is 30 days from the moment of trashing, for every workspace and the
organization folder.

More: [Trash and restore, Limits](../files/trash.md#limits)

### Can I keep a file in the trash longer than 30 days?

Not as it is. Restoring an item and trashing it again starts a new 30
days.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### Does the 30-day countdown restart when I restore a file and trash it again?

Yes. `purgeAfter` is set at each trashing, so the second trashing starts a
new 30 days.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### Is a restored file ever deleted by its old countdown?

No. A file that was restored before its time is never deleted by the
earlier countdown.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### Can I restore a file on the last day?

Yes. A restore that arrives just before the 30 days end restores the file,
and it is not deleted. A restore just after they end answers `404
NOT_FOUND`.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Am I warned before a trashed file is deleted for good?

No. No email reminder is sent. The Trash page shows the date for each item
as "Kept until".

More: [Trash and restore, The Trash page](../files/trash.md#the-trash-page)

### What happens to a file I trashed on its own when its old folder is removed after 30 days?

It is not lost with the folder. Restoring it puts it at the top level.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### When is a trashed folder removed for good?

Once the files it took along are removed.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

### Who is recorded as deleting a file when its 30 days run out?

Nobody. Removal for good is recorded in the audit trail without a person.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)

## The organization folder's trash

### Is there a separate trash for the organization folder's files?

Yes. The organization folder has its own trash, separate from every workspace.

More: [Trash and restore, Trash in the organization folder](../files/trash.md#trash-in-the-organization-folder)

### Which roles can move organization folder files to the trash and restore them?

Only organization owners and admins. They also delete organization folder
files for good and empty the organization folder's trash.

More: [Trash and restore, Trash in the organization folder](../files/trash.md#trash-in-the-organization-folder)

### Where do I find the organization folder's trash?

Owners and admins see "Trash" in the navigation while they are in the
organization folder. The page is titled "Organization folder trash" and
works like a workspace's trash.

More: [Trash and restore, The organization folder's trash in the app](../files/trash.md#the-organization-folders-trash-in-the-app)

### Why do I see no "Trash" link in the organization folder?

You are not an owner or admin of the organization. Other members see no
"Trash" link in the organization folder and no "Move to trash" on
organization folder files.

More: [Trash and restore, The organization folder's trash in the app](../files/trash.md#the-organization-folders-trash-in-the-app)

### Can a member look at the organization folder's trash?

Yes, by its address or through the API. In the app a member sees the list
without any controls, and the line "Only organization owners and admins
can change the organization folder."

More: [Trash and restore, The organization folder's trash in the app](../files/trash.md#the-organization-folders-trash-in-the-app)

### Do organization folder files also stay in the trash for 30 days?

Yes. The rules are otherwise the same as in a workspace.

More: [Trash and restore, Trash in the organization folder](../files/trash.md#trash-in-the-organization-folder)

### What happens when a member tries to trash an organization folder file through the API?

The answer is `403 FORBIDDEN`. Only owners and admins change the
organization folder.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Does an organization folder file's public link stop when the file is trashed?

Yes. An organization folder file's public link stops and comes back in the
same way as a workspace file's.

More: [Trash and restore, Trash in the organization folder](../files/trash.md#trash-in-the-organization-folder)

## Trash through the API

### Which API operations work with the trash?

`DELETE W/files/{fileID}` and `DELETE W/folders/{folderID}` trash, `POST
.../restore` restores, `GET W/files?trash=true` and `GET
W/folders?trash=true` list the trash, and `POST .../purge` and `POST
W/trash/empty` delete for good. The last three need a browser session.

More: [Trash and restore, Operations](../files/trash.md#operations)

### What does trashing a file through the API answer?

`204`. Trashing a folder answers `200` with `{"publicLinkCount": n}`.

More: [Trash and restore, What they take and return](../files/trash.md#what-they-take-and-return)

### Does a restore through the API need `expectedLockVersion`?

No. Restoring takes nothing. Trashing needs `expectedLockVersion` in the
query.

More: [Trash and restore, What they take and return](../files/trash.md#what-they-take-and-return)

### What does a folder restore through the API return?

`200` with the restored folder, under its new name and place if they
changed. Read the answer: `name` and `parentID` say where the folder is
now.

More: [Trash and restore, What they take and return](../files/trash.md#what-they-take-and-return)

### What do `folderCount` and `fileCount` mean on a folder in the trash listing?

How many folders and files the folder took along, at every level.

More: [Trash and restore, The trash listing](../files/trash.md#the-trash-listing)

### Where does an agent get a folder's `lockVersion` before trashing it?

From a folder listing. A folder's `lockVersion` comes with the folder
there. A file's comes from a read of the file.

More: [Trash and restore, What they take and return](../files/trash.md#what-they-take-and-return)

### What does `SESSION_REQUIRED` mean when a key tries to delete a file for good?

Permanent deletion needs a person in a browser. A credential that asks to
delete for good or to empty the trash gets `403 FORBIDDEN` with
`details.reason` `SESSION_REQUIRED`, whatever its scopes.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### What does deleting for good answer through the API?

`202`: the deletion is accepted and carried out in the background.
Emptying the trash answers `202` too.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

### What happens when the API is asked to delete a live file for good?

It answers `409 CONFLICT`, reason `NOT_IN_TRASH`. Trash the file first.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### Can an agent search the trash?

Yes, with `files:read`. A file listing with `trash=true` and `q` finds
trashed files.

More: [Trash and restore, Edge cases](../files/trash.md#edge-cases)

### What does an agent do when a restore answers that it needs `files:approve`?

It leaves the file in the trash, tells the person, and leaves the restore
to an owner or admin.

More: [Trash and restore, Worked example](../files/trash.md#worked-example)

### In which order are the checks made when a file is restored?

Sign-in, reach of the workspace or organization, the organization folder
role, whether the file exists and its 30 days are not over, whether it is in
the trash, whether it went there inside a folder, and last whether the
restore would make it public.

More: [Trash and restore, Restoring a file](../files/trash.md#restoring-a-file)

### Does emptying an already empty trash fail?

No. An empty trash can be emptied: nothing happens.

More: [Trash and restore, Deleting for good](../files/trash.md#deleting-for-good)

## What the trash does not do

### Can I turn the trash off so that deleting is immediate?

No. Removing always goes through the trash. Only owners and admins delete
for good, from the trash.

More: [Trash and restore, Summary](../files/trash.md#summary)

### Is an email sent when someone moves my file to the trash?

No. No email is sent about trashing, restoring or deleting. Who did it is
recorded in the audit trail.

More: [Audit trail, Folders, trash and tags](../reference/audit-trail.md#folders-trash-and-tags)

### Can I protect a file so that members cannot trash it?

Not in a workspace, where every member may trash and restore. In the
organization folder only owners and admins can.

More: [Trash and restore, Who can do what](../files/trash.md#who-can-do-what)

### Can I get a file back after the 30 days are over?

No. At the end of the 30 days the item can no longer be restored, and it
is removed for good with every version.

More: [Trash and restore, After 30 days](../files/trash.md#after-30-days)
