diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index cdc4b38f096..6086a424c19 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -1085,6 +1085,12 @@ Remove a certificate:: Trashbin -------- +:: + + trashbin + trashbin:cleanup [--all-users] [--] [...] Remove deleted files + trashbin:restore [--all-users] [--] [...] Restore deleted files + .. note:: This command is only available when the "Deleted files" app (``files_trashbin``) is enabled. @@ -1092,11 +1098,6 @@ Trashbin The ``trashbin:cleanup [--all-users] [--] [...]`` command removes the deleted files of the specified users in a space-delimited list, or all users if --all-users is specified. -:: - - trashbin - trashbin:cleanup [--all-users] [--] [...] Remove deleted files - This example removes the deleted files of all users:: sudo -u www-data php occ trashbin:cleanup --all-users @@ -1114,6 +1115,17 @@ This example removes the deleted files of users molly and freda:: Remove deleted files of molly Remove deleted files of freda +The ``trashbin:restore [--all-users] [--] [...]`` command restores the deleted files of the specified +users in a space-delimited list, or all users if --all-users is specified. + +This example restores the deleted files of all users:: + + sudo -u www-data php occ trashbin:restore --all-users + +This example restores the deleted files of users molly and freda:: + + sudo -u www-data php occ trashbin:restore molly freda + .. _user_commands_label: User commands