Question
How to clean up temporary Plesk files on a Linux server to free up 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 on a server.
Open the Plesk Repair Kit by navigating to the URL:
Note: Replace IP address/hostname in the URL below with your IP address/hostname.
https://server.example.com:8443/repair/
https://203.0.113.2:8443/repair/
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 the 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 a server.
Temporary Plesk backup files:
# rm -rf /usr/local/psa/PMM/tmp/*
Other temporary files:
# rm -rf /usr/local/psa/tmp/*
Note: To clean up temporary Plesk files on a Windows server, see this KB article.