find the files/folders that take up the most space within your hosting package
Sometimes you’re dealing with a website that consumes a lot of disk space, it’s unclear where the consumption is coming from, and it takes a lot of time to figure out how.
Follow the steps below to find the files and folders that take up the most space within your hosting package.
Connect via SSH
Follow the steps in our guide Connecting to your hosting package with SSH to connect to the hosting package via SSH. You don’t need any special programs, you can make this connection directly from Plesk.
Using SSH to find out how much space files and folders take up
After connecting via SSH, you can follow the steps below to find out where the usage is coming from.
- type in the command ncdu and then press enter
bash-5.0$ ncdu - You will now see an overview of the usage in a tree structure. Using the arrow keys on your keyboard and enter, you can scroll through the files and folders to find out what is taking up the most space.

- in the above example most of the space is taken up by the httpdocs folder, if we then open that folder by pressing enter we see that the wp-content folder seems to be the culprit.

- if by pressing enter we open the wp-content folder, we see the files that take up the most space.

You can delete files directly by selecting a file and pressing the d key. Of course, you can also delete files via FTP or Plesk file manager.




