Applicable to:
- Plesk for Linux
Question
How to remove temporary Plesk files on a Linux server to free up the disk space?
Answer
There are two ways to safely remove temporary Plesk files on a Linux server.
Note: Cleaning temporary Plesk files may not free up a lot of disk space. That means this solution may not help when there is no free disk space left on a server.
-
Open Plesk Repair Kit by navigating to the URL:
- https://server.example.com:8443/repair/
- https://203.0.113.2:8443/repair/
Note: Replace server.example.com / 203.0.113.2 in the URLs above with your server's hostname / IP address.
-
Input your Plesk Administrator credentials in the corresponding Username and Password fields and click Sign in.
-
Click the Free Up Disk Space button to clean temporary files:
- Connect to your Plesk server via SSH.
-
Delete temporary files that are older than X days from the
/tmpand/var/tmp/directories. In this example, we are removing temporary files that are older than 14 days:# find /tmp -type f -mtime +14 -exec rm {} \;
# find /var/tmp -type f -mtime +14 -exec rm {} \; -
Delete temporary files created by Plesk and its services:
Note: We recommend to run these commands when there are no active Plesk Installer and Plesk Backup tasks on the server.
-
temporary Plesk backup files:
# rm -rf /usr/local/psa/PMM/tmp/*
-
other temporary files:
# rm -rf /usr/local/psa/tmp/*
-
Comments
Please sign in to leave a comment.