Managing the Trash Bin
The Myota Vault Trashbin (files_trashbin) permanently deletes files according to users’ storage quotas and file ages. When a user deletes a file it is not immediately removed from your Myota Vault, but goes into the Trashbin. Then the user has the options to un-delete the file, or to delete it permanently.
image, width=350
As the Myota Vault administrator, you have two admin console settings for permanently deleting files from the Trashbin manually, without waiting for the normal aging-out process:
trashbin
trashbin:cleanup Remove deleted files
trashbin:expire Expires the users trashbin
The trashbin:cleanup command removes the deleted files of all users, or you may specify certain users in a space-delimited list. This example removes all the deleted files of all users:
This example removes the deleted files of user2 and user4:
`trashbin:expire` deletes only expired files according to the `trashbin_retention_obligation` setting in `config.php`. The default setting is `auto`, which keeps files in the Trashbin for 30 days, then deletes the oldest files as space is needed to keep users within their storage quotas. Files may not be deleted if the space is not needed.
The default is to delete expired files for all users, or you may list users in a space-delimited list:
See the *Deleted Files* section in Sample PHP Configuration Parameters, and the xref:admin/command-line-administration.adoc[Trash Bin section] of the admin console setting.