Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Plesk MayDay Clean Help

How to clean temporary Plesk files on a Linux server

Delete temporary files that are older than X days from the /tmp and /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:

rm -rf /usr/local/psa/PMM/tmp/* rm -rf /usr/local/psa/tmp/*

Checking if Plesk Installer is running

ps aux | grep autoinstaller | grep -v "grep"

No output means Plesk Installer is inactive.

If an output like below is returned

root 6075 1.1 1.6 194908 17232 ? S 09:28 0:00 /usr/local/psa/admin/bin/autoinstaller --service-mode --enable-xml-output --ssl-cert /usr/local/psa/admin/conf/httpsd.pem --branch release,stable --web-interface --with-ssl --disable-browser

it means that Plesk Installer is running. In this case, it is required to wait until it is finished (up to 30 minutes). If the process is still active after 30 minutes, kill it manually using the resolution steps from this KB article.

How to remove Plesk backup files and their logs

A.In Plesk, go to Tools & Settings > Backup manager (server-wide backups) or Websites & Domains > Backup Manager (domain backups).

Remove selected backups

B. via CLI:

/usr/local/psa/admin/bin/pmm-ras --get-dump-list | grep .xml:


/usr/local/psa/admin/bin/pmm-ras --get-dump-list | grep .xml: domains/

*Delete the backup by specifying the corresponding .xml file. For example:

/usr/local/psa/admin/bin/pmm-ras --verbose --debug --delete-dump --dump-specification=backup_info_1908101555.xml --session-path=/var/log/plesk/PMM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment