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.

  1. type in the command ncdu and then press enter
    bash-5.0$ ncdu
  2. 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.
  3. 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.
  4. 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.

Hulp nodig van een van onze hosting gurus?

Heb je nu antwoord nodig op een dringende vraag of hulp nodig van onze support? Onze hosting specialisten staan maar al te graag voor je klaar!

Customer Support Team

Onze klantenservice is op dit moment gesloten. We zijn weer open op de eerstvolgende werkdag om 09:00 uur

Of neem een kijkje in onze 'stap-voor-stap' support handleidingen.

Bekijk support artikelen