Skip to content

Commit

Permalink
Add doc for occ trashbin:restore command
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 committed Jan 4, 2023
1 parent 790f8b0 commit 8ce0847
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions admin_manual/configuration_server/occ_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1085,18 +1085,19 @@ Remove a certificate::
Trashbin
--------

::

trashbin
trashbin:cleanup [--all-users] [--] [<user_id>...] Remove deleted files
trashbin:restore [--all-users] [--] [<user_id>...] Restore deleted files

.. note::
This command is only available when the "Deleted files" app
(``files_trashbin``) is enabled.

The ``trashbin:cleanup [--all-users] [--] [<user_id>...]`` 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] [--] [<user_id>...] Remove deleted files

This example removes the deleted files of all users::

sudo -u www-data php occ trashbin:cleanup --all-users
Expand All @@ -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] [--] [<user_id>...]`` 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
Expand Down

0 comments on commit 8ce0847

Please sign in to comment.