User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
nextcloud_docker [2026/04/16 20:17] deftespritnextcloud_docker [2026/04/16 20:27] (current) – [Maintenance] deftesprit
Line 15: Line 15:
 </code> </code>
 \\ \\
-Here are some commands to cleanup storage space:+Here are some commands to cleanup storage space. Use this command in your Nextcloud data directory using the Unraid terminal. 
 +Step through each sub-folder to see what is taking up space.
 <code> <code>
 du -sh * | sort -h du -sh * | sort -h
 +</code>
 +\\
 +Use the following command to delete file uploads that are stuck. Make sure these files are not actively uploading.
 +<code>
 rm -f ./* rm -f ./*
 +</code>
 +\\
 +Here are some additional commands to cleanup space. The first one looks for orphaned entries. The second
 +one removes file versions. The third one empties all users trash bins.
 +<code>
 docker exec -u 99:100 Nextcloud php /var/www/html/occ files:cleanup docker exec -u 99:100 Nextcloud php /var/www/html/occ files:cleanup
 docker exec -u 99:100 Nextcloud php /var/www/html/occ versions:cleanup docker exec -u 99:100 Nextcloud php /var/www/html/occ versions:cleanup

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information