The trash
When you delete a file or a folder, FileRun moves it to the trash, where you can restore it or delete it for good. This page describes how to delete, what goes to the trash, and how to restore items and remove them from the trash.
Deleting an item
Select one or more files or folders, then do one of these:
- Click
Move to trashin the toolbar. On a small screen, it is underMore. - Right-click the items and choose
Move to trash. - Press the
Deletekey. - Drag the items onto
Trashin the panel on the left.
When you delete only files, FileRun moves them to the trash straight away. When a folder is among
the items, a window opens first. Its title is Deleting, followed by the name of the item, or
Deleting multiple items. Click Move to trash to delete, or Cancel.
Some items cannot be deleted:
- your home folder,
My drive - a file or a folder that another user shared with you. You can delete the items inside a shared folder, when the share allows it. See Deleting in a shared folder.
- the top folder of a shared drive
- a file that another user locked. A lock does not prevent the deletion of the folder that holds the file. See Locking files.
To delete files, your account needs User can delete files. To delete folders, it also needs
User can delete folders. See Deleting files and
Deleting folders.
Deleting without the trash
When your account is allowed to delete permanently, the window also has the checkbox
Permanent deletion. When you tick it, the button changes from Move to trash to
Delete forever, and the items are deleted without going to the trash.
To open the window with Permanent deletion already ticked, press Shift + Delete, or hold
Shift while you click Move to trash. The window then opens for files too.
This needs the permission User can delete files and folders permanently. Without it, the window
does not show the checkbox. See Deleting permanently.
Caution
An item deleted with
Permanent deletioncannot be restored.
What goes to the trash
These items go to the trash:
- The files and folders you delete in your own folders. They go to your trash.
- The items you delete in a folder that another user shared with you. They go to the trash of that user. See Deleting in a shared folder.
- The items you delete in a shared drive. They go to the trash of the drive. See Deleting inside a shared drive.
- The items you delete through WebDAV or the desktop sync app. See WebDAV and Desktop sync.
- A file that another file replaces while versioning is off: when you copy or move a file over a
file of the same name with
Overwrite, or extract an archive over files of the same names. While versioning is on, the content that is replaced becomes a previous version of the file instead. See File versions. - The old content of a file that you upload over in the web interface while versioning is off. It goes to the same trash as a file that you delete in that folder. The file keeps its shares, its links, its comments and its tags, so the item in the trash holds only the old content. To restore it, rename the current file first. See Restoring an item.
These items do not go to the trash:
- The items you delete with
Permanent deletion. - The content that a save in an editor replaces while versioning is off. The same is true for the content that a WebDAV client, the desktop sync app or a mobile app saves over. It is deleted for good. See When versioning is off.
- A previous version that you delete. See File versions.
- The files that the administrator deletes with the
delete_old_files.phpcommand. See Deleting old user files.
There is no setting that turns the trash off. An account without User can delete files cannot
delete, and has no trash. See When the trash is not available.
Looking at what you deleted
Open Trash in the panel on the left. The list shows the files and folders in your trash. When
the trash is empty, it shows "There are no deleted files".
The list has three columns for the trash. They are hidden at first. To show them, open
Choose details and turn on Trash: Date deleted, Trash: Deleted from or Trash: Deleted by.
See The file manager.
Date deleted: when the item was moved to the trash.Deleted from: the folder that the item was in, named as in the panel on the left, such asMy drive/Projects. For the trash of a shared drive, the name starts withShared drivesand the name of the drive.Deleted by: the user who deleted the item. This is not always you: see Deleting in a shared folder.
The Details tab of the selected item shows Deleted from, Deleted by when it is known, and
Deleted, the date of the deletion.
In the trash, you can restore items, delete them for good, and look at their details. To look at a
deleted file without restoring it, right-click it and choose Open with → Preview.
You cannot open a deleted folder to see what is in it. You cannot download, rename, move, copy, share, star, tag or comment on an item in the trash, and you cannot open the previous versions of a deleted file. Restore the item first.
Restoring an item
- Open
Trash. - Select one or more items.
- Click
Restorein the toolbar, or right-click the items and chooseRestore.
Each item goes back to the folder it was deleted from, under the same name.
- When that folder no longer exists, the item goes to the top of
My drive. FileRun does not create the missing folders again. - When an item with the same name is already in that folder, the item is not restored. The message says "There is already an item with the same name inside "Projects"!". Rename the item that is in the folder, then restore again.
- When you restore several items and one of them cannot be restored, FileRun restores the others. The message says why that item stayed in the trash.
- The storage quota does not stop a restoration, because the items in the trash already count against it. See The trash and the storage quota.
Restoring needs User can delete files. It does not need User can rename and move files and folders. See Deleting files.
What comes back with an item
A restored item comes back with its tags, ratings, comments, colour and other metadata. A restored
file comes back with its previous versions, and with its lock, if it was locked. A file in the trash
keeps its lock: while another user holds it, you cannot restore the file or use Delete forever
on it. Empty trash removes it all the same.
Some things are removed when the item goes to the trash, and restoring does not bring them back:
- The shares of the item. For a folder, also the shares of the items inside it. The users you shared with lose their access.
- The web links of the item. For a folder, also the web links of the items inside it.
- The stars.
- Its place in collections and photo albums.
To have them again, share the item again, create new links, star it and add it to the collections again.
Removing an item for good
To remove items from the trash for good, do one of these:
- Delete forever: select the items in the trash, right-click them and choose
Delete forever. Pressing theDeletekey in the trash does the same. - Empty trash: open
Trashand clickEmpty trashin the toolbar, with nothing selected. While the trash is open, you can also right-click an empty area of the list and chooseEmpty trash. From any folder, you can right-clickTrashin the panel on the left and chooseEmpty trash: it empties that trash. A window titledEmpty trash?says "All files and folders in your trash are about to be permanently deleted." and asks you to confirm.
In the trash, Delete forever and the Delete key open a window first, also for files. Its title
is Deleting, followed by the name of the item, or Deleting multiple items. Click
Delete forever to delete, or Cancel.
Caution
The items that you remove from the trash cannot be restored.
When you remove several items and one of them cannot be removed, FileRun removes the others. The message says why that item stayed in the trash.
A file removed from the trash is deleted from the server, together with its previous versions, its tags, its comments and its other metadata.
Both commands need User can delete files and folders permanently. Without it, you can move items
to the trash and restore them, but not remove them from it. Delete forever and Empty trash are
not offered, and the Delete key does nothing in the trash. See
Deleting permanently.
Emptying the trash automatically
Items stay in the trash until somebody removes them. FileRun empties the trash by itself only when
the administrator schedules the empty_trash.php command on the server. With --days, the command
removes the items deleted more than that number of days ago. It empties the trash of the shared
drives too.
The control panel has no setting for this. Ask your administrator whether the command runs, and after how many days. See Command line tools and Data retention.
The trash and the storage quota
The items in your trash count against your storage quota. Deleting an item does not free any space. To free space, remove items from the trash for good, or empty it.
- The items that other users delete in the folders you shared with them go to your trash, so they count against your quota too.
- The previous versions of the files in the trash do not count.
- The trash of a shared drive counts against the quota of the drive.
See Storage quotas.
Deleting inside a folder somebody shared with you
The trash belongs to the owner of the item, not to the user who deletes it.
When you delete an item inside a folder that another user shared with you, the item goes to the
trash of that user. You do not find it in your own Trash, and you cannot restore it. Ask the
owner of the folder to restore it. In the trash of the owner, Deleted by shows your name.
To delete in a shared folder, the role of the share must be Content manager. Your account and the
account of the owner both need User can delete files, and User can delete folders for folders.
To delete without the trash, both accounts also need User can delete files and folders permanently. See Permissions and shared files and
Sharing files and folders.
The same applies the other way around. When somebody deletes an item in a folder that you shared, the item goes to your trash, and you can restore it.
Deleting inside a shared drive
A shared drive has its own trash. What any member deletes in a drive goes to the trash of the drive, not to the trash of the member.
Only the members with the role Manager can open the trash of a drive. It is the Trash entry
under the drive, in the panel on the left. To get back an item that you deleted in a drive, ask a
Manager of the drive. See Deleting and
The trash of the drive.
When the trash is not available
The panel on the left has no Trash section when:
- Your account does not have the permission
User can delete files. Without it, you cannot delete and you have no trash. See Deleting files. - Your account has no home folder, for example a guest account. See Guest accounts.
The desktop sync app and the mobile apps do not show the trash. Use the web interface to restore the items you deleted from them. See Desktop sync and Mobile apps.