Project

General

Profile

Actions

Delete Permanently' Work around

Resolving 'Delete Permanently' Failures in Nextcloud's Recycling Interface

If you encounter issues while trying to permanently delete files using the "Delete permanently" option in Nextcloud's web interface, you can resolve this problem through the command line. Follow these steps:

Open a terminal or command prompt.

Navigate to your Nextcloud installation directory.

Execute the following command, replacing www-data with the appropriate user for your system:

sudo -u www-data php /var/www/html/nextcloud/occ trashbin:cleanup <<USERMANE>>

In this command:

www-data is the user that owns the Nextcloud files and is typically used by web servers to execute PHP scripts. You should replace it with the appropriate user for your system if it's different (e.g., apache, nginx, etc.).

php is used to execute the PHP script (occ) with the specified user.

/var/www/html/nextcloud/occ is the path to the occ script within your Nextcloud installation.

trashbin:cleanup <<USERNAME>> is the Nextcloud command you want to run.

Please replace www-data with the correct user for your system, and this command should allow you to run the occ command with the correct user permissions.

Updated by Gareth Eaton about 1 year ago · 2 revisions