Skip to content

How to Clean Trashbin for All Users via CLI in Nextcloud AIO #4913

Answered by szaimen
vawaver asked this question in Questions
Discussion options

You must be logged in to vote

Hi, based on https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-run-occ-commands and https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#trashbin, the following should work:
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ trashbin:cleanup --all-users

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vawaver
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants