Summary:
Trying to delete a large folder structure is failing.
Question/Issue Description:
Trying to delete a large folder structure, using the web UI to delete the files ends in an error.
Environment Details:
Product - FileCloud Server
Version - Any
Platform - OnPremise
Solution:
FileCloud has a command line tool, rmutil.php, that can be used to delete files directly from the command line. More details about the tool can be found in the link here.
Although the link specifies deleting files in the recycle bin, the tool can be used to delete files under any path in FileCloud.
If the files under the folder "Test Folder" in user account "user1" needs to be deleted then the command should be executed as follows.
Windows:
cd C:\xampp\htdocs\resources\tools\fileutils
For Simulation:
C:\xampp\php\php.exe rmutil.php -h default -u user1 -p "/user1/Test Folder"
For Actual Delete:
C:\xampp\php\php.exe rmutil.php -h default -u user1 -p "/user1/Test Folder" -r 1
Linux:
cd /var/www/html/resources/tools/fileutils
For Simulation:
php rmutil.php -h default -u user1 -p "/user1/Test Folder"
For Actual Delete:
php rmutil.php -h default -u user1 -p "/user1/Test Folder" -r 1
For multi-tenant environments, the -h value can be supplied with the tenant site URL to delete the files.
Note: Take backup of your data before performing any mass delete operations.