Plesk

How to clean up temporary Plesk files on a Linux server

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.

 

Removing tmp files using the Plesk Repair Kit

 

  1. 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/

  2. Input your Plesk Administrator credentials in the corresponding Username and Password fields and click Sign in.

    Plesk_repair_panel.PNG

  3. Click the Free Up Disk Space button to clean temporary files:

 

Removing tmp files via a command-line interface

 

  1. Connect to the Plesk server via SSH.

  2. 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 {} ;

  3. 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.

Exit mobile version