{"id":419,"date":"2021-06-29T07:16:27","date_gmt":"2021-06-29T12:16:27","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=419"},"modified":"2026-02-16T14:48:53","modified_gmt":"2026-02-16T20:48:53","slug":"what-are-some-useful-tips-for-disk-space-management","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/","title":{"rendered":"What are some useful tips for disk space management?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#backups\" >Backups<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#account_quotas\" >Account Quotas<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#monitoring_and_troubleshooting\" >Monitoring and Troubleshooting<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#troubleshooting_via_ssh\" >Troubleshooting via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#troubleshooting_via_cpanelwhm\" >Troubleshooting via cPanel\/WHM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#temporary_files\" >Temporary Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#trash_folders_%e2%80%93_cpanel_file_manager\" >Trash Folders &#8211; cPanel File Manager<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#via_cpanel\" >via cPanel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#via_ssh\" >via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#trash_folders_%e2%80%93_imap\" >Trash Folders &#8211; IMAP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#autoexpunge\" >Autoexpunge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#via_cpanel-2\" >via cPanel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#via_webmail\" >via Webmail<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#via_ssh-2\" >via SSH<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p>It is important to make sure that the server does not fully run out of disk space. If it does, the services running in the server will quit working, and some of the database tables could even become corrupted. Here are some things to consider, to help ensure that your server has enough disk space to work correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"backups\"><\/span>Backups<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Although backups do themselves take disk space, it is still very important to have them. To protect against data loss, it is always strongly recommended not only to keep multiple sets of backups, but also to keep copies of at least some of them in an offsite location. Although we do create our own&nbsp;<a href=\"https:\/\/www.knownhost.com\/kb\/information-about-backups-and-restorations\/\">backups of the VPSs<\/a>, there are multiple reasons it is important not only for you to create your own backups as well, but also to keep at least one of the copies offsite.<\/p>\n\n\n\n<p>For cPanel\/WHM servers, follow our step-by-step <a href=\"https:\/\/www.knownhost.com\/kb\/cpanel-backup-config\/\">cPanel backup configuration guide<\/a> to properly set up automatic backups and recommended retention settings. For manually triggering backups at the time you want them via cPanel, you can read more&nbsp;<a href=\"https:\/\/docs.cpanel.net\/cpanel\/files\/backup-wizard\/\">here<\/a>. For DirectAdmin servers, you can configure backups from&nbsp;<a href=\"https:\/\/help.directadmin.com\/item.php?id=269\">any of the three access levels<\/a>&nbsp;and it is possible to&nbsp;<a href=\"https:\/\/help.directadmin.com\/item.php?id=511\">store the generated backup both locally and remotely<\/a>. For servers still using Plesk, (Plesk is no longer available for new servers) you can learn more about the backup system&nbsp;<a href=\"http:\/\/docs.plesk.com\/en-US\/12.5\/advanced-administration-guide-linux\/backing-up-restoring-and-migrating-data\/backing-up-data.68837\/\">here<\/a>.<\/p>\n\n\n<div class=\"kb-shortcode kb-shortcode_warning\">\n                    <div class=\"kb-shortcode-icon\">\n                        <i class=\"fa fa-exclamation-triangle fa-2x\"><\/i>\n                    <\/div>\n                    <div class=\"kb-shortcode-content_warning\">It is particularly strongly recommended not to use site plugins or similar to generate backups. Very frequently this type of site plugin runs at an unnecessarily high i\/o priority, which in many cases can use up all the disk time and prevent other processes (such as mysql or apache) from having quick access to the disk. For this reason, this type of plugin is extremely likely to slow down all of the sites on your server, and they are not recommended.<\/div>\n                <\/div>\n\n\n\n<p>On the Dedicated Servers, the backups are by default configured to be stored on the secondary disk, so even in the event that the partition for the backups becomes completely full, it will not interfere with the functionality of the daemons (though it would cause those backup runs to fail, and those backup files to become corrupted). But on a VPS, there is only a single partition, so it is very important to make sure the backups being generated and stored there will not cause the disk to become completely full.<\/p>\n\n\n\n<p>Overall, when choosing a backup configuration, it is important to consider all of the following factors:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>How much disk space you have available in the server<\/li><li>How much disk space each account takes up<\/li><li>Whether\/how many external locations you have available to you in order to store copies of backups outside of the server<\/li><li>How long ago you want to be able to revert accounts to<\/li><\/ul>\n\n\n\n<p>For more specific recommendations, (for cPanel\/WHM servers) please read more&nbsp;<a href=\"https:\/\/www.knownhost.com\/kb\/cpanel-backup-config\/\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"account_quotas\"><\/span>Account Quotas<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>One way to help prevent the server from running out of disk space is by using account quotas to limit how much disk space each account is allowed to use. In cPanel, the quota for a specific account can be adjusted in WHM at<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Home &gt;&gt; Account Information &gt;&gt; List Accounts<\/code><\/pre>\n\n\n\n<p>by clicking the plus (+) button next to the desired account, clicking the &#8220;Change Quota&#8221; button that then appears under the account information, and using the interface there.<\/p>\n\n\n\n<p>It is strongly recommended to have a quota on each account, and for the sum of the account quotas to be enough less than the total size of the server to leave room for the system files.<\/p>\n\n\n\n<p>It is important to note that with default settings, database sizes are not calculated. This setting is chosen as default for performance reasons, since there is considerable overhead with calculating database sizes. For this reason, the database sizes are by default displayed as zero, and do not count against the accounts&#8217; disk space quotas. They do, however, still take up space on the disk. For this reason, with default settings, it is possible for the accounts to use more disk space than they have been allocated. To prevent this from happening, you could enable database size calculations by setting &#8220;Include databases in disk usage calculations&#8221; to &#8220;On&#8221; in WHM at<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Home &gt;&gt; Server Configuration &gt;&gt; Tweak Settings -&gt; SQL<\/code><\/pre>\n\n\n\n<p>But remember that this is likely to slow down the server, so you will need to decide for your server how likely it is for database disk space usage to become a problem vs. database disk space calculation to cause a problem with server load, or which issue you would rather risk happening.<\/p>\n\n\n\n<p>It is also important to note that (in a cPanel server) files owned by &#8220;nobody&#8221; will not count against the cPanel user&#8217;s disk space quota. This is yet another reason to use mod_ruid2 (or, if this is not possible, suphp) so that the site files will be correctly owned by the cPanel user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"monitoring_and_troubleshooting\"><\/span>Monitoring and Troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>It is strongly recommended to keep an eye on how much disk space the server is using, to help ensure it does not completely fill up its disk. On a cPanel server, it is strongly recommended to enable all of the following settings in WHM at<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Home &gt;&gt; Server Configuration &gt;&gt; Tweak Settings<\/code><\/pre>\n\n\n\n<p>in the section &#8220;Notifications&#8221;, to help keep you and your resellers\/site admins informed when the disk space usage needs attention:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>System disk space usage warnings<\/li><li>Account system disk usage &#8220;warn&#8221; percentage<\/li><li>Account system disk usage &#8220;critical&#8221; percentage<\/li><li>Disk quota usage warnings<\/li><li>Account disk quota &#8220;warn&#8221; percentage<\/li><li>Notify admin or reseller when disk quota reaches &#8220;warn&#8221; state<\/li><li>Account disk quota &#8220;critical&#8221; percentage<\/li><li>Notify admin or reseller when disk quota reaches &#8220;critical&#8221; state<\/li><li>Account disk quota &#8220;full&#8221; percentage<\/li><li>Notify admin or reseller when disk quota reaches &#8220;full&#8221; state<\/li><li>Email mailbox usage warnings<\/li><li>Mailbox disk quota &#8220;warn&#8221; percentage<\/li><li>Mailbox disk quota &#8220;critical&#8221; percentage<\/li><li>Mailbox disk quota &#8220;full&#8221; percentage<\/li><\/ul>\n\n\n\n<p>If your server has mailman enabled, it is also strongly recommended to enable &#8220;Include mailman in disk usage calculations&#8221; in the &#8220;Mail&#8221; section of &#8220;Tweak Settings&#8221;.<\/p>\n\n\n\n<p>In DirectAdmin or Plesk servers, it is recommended to have similar or equivalent configurations enabled where possible.<\/p>\n\n\n\n<p>If more disk space is being used than expected, it is recommended to check what is using the disk space. Where to check first will depend on how you find out about it.<\/p>\n\n\n\n<p>If the server has used up enough of its disk space overall that it is causing services (daemons) to be interrupted, you might not be able to use the cPanel (or DirectAdmin or Plesk, as applicable) interface to investigate. Sometimes even if the panel is not working, you will be able to connect using&nbsp;<a href=\"https:\/\/www.knownhost.com\/kb\/how-to-connect-with-ssh\/\">SSH<\/a>. If SSH is not working either, you can&nbsp;<a href=\"https:\/\/www.knownhost.com\/kb\/howto-login-my-knownhost\/\">open a Support Ticket<\/a>&nbsp;for assistance 24x7x365.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"troubleshooting_via_ssh\"><\/span>Troubleshooting via SSH<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"kb-shortcode kb-shortcode_warning\">\n                    <div class=\"kb-shortcode-icon\">\n                        <i class=\"fa fa-exclamation-triangle fa-2x\"><\/i>\n                    <\/div>\n                    <div class=\"kb-shortcode-content_warning\">If you are not able to log into cPanel\/WHM, (or DirectAdmin or Plesk, as applicable) it is strongly recommended to open a Support Ticket for assistance, unless you are very comfortable with ssh, enough to attempt to resolve the issue on your own. It is important to be extremely careful if attempting to resolve disk space issues yourself, since it is possible to remove wrong files, thereby breaking server functionality.<\/div>\n                <\/div>\n\n\n\n<p>If you are logged into ssh as root, you can check the server&#8217;s overall disk space usage with the&nbsp;<code>df<\/code>&nbsp;utility. For example, you can check the disk space usage in the root&nbsp;<code>\/<\/code>&nbsp;partition as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~]# df -h \/\n  Filesystem      Size  Used Avail Use% Mounted on\n  \/dev\/simfs       50G   34G   17G  68% \/<\/code><\/pre>\n\n\n\n<p>In this example, the&nbsp;<code>\/<\/code>&nbsp;partition has a total of 50&nbsp;GB&nbsp;of disk space, of which it is using about 34&nbsp;GB, leaving roughly 17&nbsp;GB&nbsp;remaining. This comes out to about 68% of the disk space being full.<\/p>\n\n\n\n<p>If you are using a VPS, the&nbsp;<code>\/<\/code>&nbsp;partition is the only one you need to check, but on a Dedicated Server there are multiple partitions. You may also want to check how full the&nbsp;<code>\/backup<\/code>&nbsp;partition is. For that, you can use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # df -h \/backup<\/code><\/pre>\n\n\n\n<p>The output will appear similar as in the above example, but with data for&nbsp;<code>\/backup<\/code>&nbsp;instead of&nbsp;<code>\/<\/code>.<\/p>\n\n\n\n<p>If you want to check how many backups are present and how big they are, you can check with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~\/support]# find \/backup -type d -name accounts -print0 | xargs -0 du -sch | sort -h\n  4.0K\t  \/backup\/2017-07-02\/accounts\n  4.0K\t  \/backup\/2017-07-03\/accounts\n  4.0K\t  \/backup\/2017-07-04\/accounts\n  4.0K\t  \/backup\/2017-07-05\/accounts\n  4.0K\t  \/backup\/2017-07-06\/accounts\n  4.0K\t  \/backup\/2017-07-07\/accounts\n  4.0K\t  \/backup\/monthly\/2017-07-01\/accounts\n  4.0K\t  \/backup\/weekly\/2017-06-25\/accounts\n  4.0K\t  \/backup\/weekly\/2017-07-02\/accounts\n  5.0G\t  \/backup\/monthly\/2017-06-01\/accounts\n  5.0G\t  \/backup\/monthly\/2017-06-15\/accounts\n  10G\t  total<\/code><\/pre>\n\n\n\n<p>In this case, a Remote Destination was configured, and later the server was configured not to retain the backups locally. The backups that were already present before that were not removed, but all subsequent ones were deleted from the server after successful transfer to the remote destination.<\/p>\n\n\n\n<p>Although this only looks for the account backups, these are usually larger than the system backups.<\/p>\n\n\n\n<p>If you decide you want to remove one or more of the backups to save space, you can use the `cd` command to go to the desired folder, and then use the `rm -v` command to remove the specific files you would like to remove.<\/p>\n\n\n\n<p>After checking the total disk space usage of the server, it is useful to find how much is being used by each account. You can get a general overview using&nbsp;<code>repquota<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # repquota -as<\/code><\/pre>\n\n\n\n<p>Here is example output showing the first few lines of the output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~]# repquota -as | head\n  *** Report for user quotas on device \/dev\/simfs\n  Block grace time: 00:00; Inode grace time: 00:00\n                        Block limits                File limits\n  User            used    soft    hard  grace    used  soft  hard  grace\n  ----------------------------------------------------------------------\n  root      --  29533M       0       0           246k     0     0       \n  bin       --   44980       0       0             70     0     0       \n  daemon    --      28       0       0              6     0     0       \n  nobody    --    144M       0       0          36320     0     0       \n  mailnull  --    2732       0       0            197     0     0 <\/code><\/pre>\n\n\n\n<p>The first column shows the username. The amount of disk space used by the account is shown under &#8220;used&#8221; in the section &#8220;Block limits&#8221;. So in this example, we can see that user &#8220;root&#8221; is using 29533&nbsp;MB&nbsp;of space (about 29&nbsp;GB). If you do the command as just&nbsp;<code>repquota -as<\/code>&nbsp;rather than&nbsp;<code>repquota -as | head<\/code>&nbsp;as here, then you will see the full repquota output rather than just the first ten lines, and included in the list should be all the cPanel users.<\/p>\n\n\n\n<p>So if you are not able to log into cPanel\/WHM&nbsp;you can still check which users are using roughly how much disk space. However, remember that if &#8220;Include databases in disk usage calculations&#8221; is not enabled, these numbers will not include the disk space used by the databases.<\/p>\n\n\n\n<p>If there is a particular account using more disk space than expected, it is recommended to determine where the disk space is being used. You can find the size of folders (including their contents) with the&nbsp;<code>du<\/code>&nbsp;utility as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~]# cd \/path\/to\/folder\/\n  root@host &#091;\/path\/to\/folder]# du -hd 1 .\n  932K\t  .\/.cphorde\n  84K\t  .\/etc\n  8.0K\t  .\/.sqmaildata\n  4.0K\t  .\/.trash\n  12K\t  .\/.htpasswds\n  20K\t  .\/.ssh\n  4.0K\t  .\/perl5\n  8.0K\t  .\/.subaccounts\n  63M\t  .\/public_html\n  636M\t  .\/mail\n  8.5M\t  .\/.git\n  2.2M\t  .\/.spamassassin\n  62M\t  .\/tmp\n  24K\t  .\/ssl\n  580K\t  .\/.cpanel\n  80K\t  .\/cache\n  8.0K\t  .\/public_ftp\n  8.0K\t  .\/.cpaddons\n  630M\t  .\/logs\n  4.0K\t  .\/.sqmailattach\n  100K\t  .\/.razor\n  1.4G \t  .<\/code><\/pre>\n\n\n\n<p>You can sort these by size and display only the largest ones as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;\/path\/to\/folder]# du -hd 1 . | sort -h | tail\n  100K\t  .\/.razor\n  580K\t  .\/.cpanel\n  932K\t  .\/.cphorde\n  2.2M\t  .\/.spamassassin\n  8.5M\t  .\/.git\n  62M\t  .\/tmp\n  63M\t  .\/public_html\n  630M\t  .\/logs\n  636M\t  .\/mail\n  1.4G\t  .<\/code><\/pre>\n\n\n\n<p>Here, the last entry&nbsp;<code>1.4G .<\/code>&nbsp;is showing us that folder&nbsp;<code>.<\/code>, which represents the folder we are in at the time, is 1.4&nbsp;GB&nbsp;in size. This is the sum of all the contents of the folder we are in, which includes loose files (which are not displayed in the list) and subfolders (which are displayed in the full list, but only the nine largest are shown in this second shorter list). If you want to show loose files as well, you can do so with the&nbsp;<code>-a<\/code>&nbsp;option on&nbsp;<code>du<\/code>, as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;\/path\/to\/folder]# du -had 1 .\n  932K\t  .\/.cphorde\n  4.0K\t  .\/.contactemail\n  84K\t  .\/etc\n  8.0K\t  .\/.sqmaildata\n  4.0K\t  .\/.trash\n  12K\t  .\/.htpasswds\n  20K\t  .\/.ssh\n  4.0K\t  .\/perl5\n  4.0K\t  .\/.bash_logout\n  8.0K\t  .\/.subaccounts\n  4.0K\t  .\/.bashrc\n  4.0K\t  .\/.ftpquota\n  4.0K\t  .\/.bash_profile\n  63M\t  .\/public_html\n  636M\t  .\/mail\n  4.0K\t  .\/.lastlogin\n  0\t  .\/access-logs\n  8.5M\t  .\/.git\n  2.2M\t  .\/.spamassassin\n  0\t  .\/www\n  62M\t  .\/tmp\n  24K\t  .\/ssl\n  0\t  .\/README\n  580K\t  .\/.cpanel\n  4.0K\t  .\/.dns\n  4.0K\t  .\/.gitconfig\n  80K\t  .\/cache\n  8.0K\t  .\/.bash_history\n  8.0K\t  .\/public_ftp\n  4.0K\t  .\/.gitignore\n  8.0K\t  .\/.cpaddons\n  630M\t  .\/logs\n  4.0K\t  .\/.sqmailattach\n  4.0K\t  .\/cpbackup-exclude.conf\n  100K\t  .\/.razor\n  4.0K\t  .\/.my.cnf\n  1.4G\t  .<\/code><\/pre>\n\n\n\n<p>As before, you can sort the output and show only the largest items, as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;\/path\/to\/folder]# du -had 1 . | sort -h | tail\n  100K\t  .\/.razor\n  580K\t  .\/.cpanel\n  932K\t  .\/.cphorde\n  2.2M\t  .\/.spamassassin\n  8.5M\t  .\/.git\n  62M\t  .\/tmp\n  63M\t  .\/public_html\n  630M\t  .\/logs\n  636M\t  .\/mail\n  1.4G\t  .<\/code><\/pre>\n\n\n\n<p>In this case, none of the loose files are as big as the ninth-biggest subdirectory, so none of the loose files are showing up in the shorter list. But if, for example, you had created a backup via cPanel and forgotten to remove it, it could be useful to see the file sizes alongside the folder sizes, to determine where the disk space usage is coming from.<\/p>\n\n\n\n<p>For example, if I create a large file in this folder named&nbsp;<code>temp<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;\/path\/to\/folder]# ls -hl temp\n  -rw-r--r-- 1 root root 1.0G Jul 31 10:38 temp<\/code><\/pre>\n\n\n\n<p>it will not show up in&nbsp;<code>du<\/code>&nbsp;without using&nbsp;<code>-a<\/code>. But we can see the larger total size of the directory, which can tell us that we should check for large files:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;\/path\/to\/folder]# du -hd 1 . | sort -h | tail\n  100K\t  .\/.razor\n  580K\t  .\/.cpanel\n  932K\t  .\/.cphorde\n  2.2M\t  .\/.spamassassin\n  8.5M\t  .\/.git\n  63M\t  .\/tmp\n  65M\t  .\/public_html\n  634M\t  .\/logs\n  637M\t  .\/mail\n  2.4G\t  .<\/code><\/pre>\n\n\n\n<p>Using&nbsp;<code>-a<\/code>&nbsp;then shows us the files as well, which gives us more detail of what is taking up space:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;\/path\/to\/folder]# du -had 1 . | sort -h | tail\n  580K\t  .\/.cpanel\n  932K\t  .\/.cphorde\n  2.2M\t  .\/.spamassassin\n  8.5M\t  .\/.git\n  63M\t  .\/tmp\n  65M\t  .\/public_html\n  634M\t  .\/logs\n  637M\t  .\/mail\n  1.1G\t  .\/temp\n  2.4G\t  .<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"troubleshooting_via_cpanelwhm\"><\/span>Troubleshooting via cPanel\/WHM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"kb-shortcode kb-shortcode_info\">\n                    <div class=\"kb-shortcode-icon\">\n                        <i class=\"fa fa-info-circle fa-2x\"><\/i>\n                    <\/div>\n                    <div class=\"kb-shortcode-content_info\">This section assumes a cPanel server. If your server uses DirectAdmin or Plesk, you will need to instead use the equivalent functions in your panel.<\/div>\n                <\/div>\n\n\n\n<p>If you are able to still log into WHM and cPanel, you can use the&nbsp;&#8220;<a href=\"https:\/\/docs.cpanel.net\/whm\/account-information\/list-accounts\/\">List Accounts<\/a>&#8221; interface in WHM at<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  Home &gt;&gt; Account Information &gt;&gt; List Accounts<\/code><\/pre>\n\n\n\n<p>to see how much space each account is currently taking. You can even sort the accounts by disk space usage by clicking the title of the &#8220;Disk Used&#8221; column. Note that if databases are not being included in quota calculations, the accounts are likely taking more space than will be displayed here.<\/p>\n\n\n\n<p>If there is an account in particular you would like to investigate, you can click on the &#8220;cP&#8221; icon of the row in the &#8220;cPanel&#8221; column, to open the cPanel interface for the account. From there, you can go to the&nbsp;&#8220;<a href=\"https:\/\/documentation.cpanel.net\/display\/ALD\/Disk+Usage\">Disk Usage<\/a>&#8221; page in the &#8220;Files&#8221; section, to see a breakdown of approximately how that account is using its disk space. How to proceed from there depends heavily on what category is using most of the disk space.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"temporary_files\"><\/span>Temporary Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><em>Usually<\/em>&nbsp;temporary files will not be the main cause of the server running out of disk space. However, it is very important&nbsp;<em><strong>not<\/strong><\/em>&nbsp;to remove the&nbsp;<code>\/tmp\/<\/code>&nbsp;directory itself, or any socket files or subdirectories that might be present. Before removing the files, check how much space they are taking up:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # find \/tmp -type f -print0 | xargs -0 du -sch | sort -h | tail<\/code><\/pre>\n\n\n\n<p>If the files in&nbsp;<code>\/tmp<\/code>&nbsp;are large enough to make a difference, you may want to consider removing them. To do so, in a cPanel server, this command is likely to be safe:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # find \/tmp -type f -exec rm -v {} +<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"trash_folders_%e2%80%93_cpanel_file_manager\"><\/span>Trash Folders &#8211; cPanel File Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>cPanel File Manager has a trash folder for each account, so that if something is deleted by accident from the File Manager, it can be brought back relatively easily. But, this trash folder is not automatically emptied. If any of your users make extensive use of the File Manager in cPanel, especially if they do not often use the&nbsp;<a href=\"https:\/\/docs.cpanel.net\/cpanel\/files\/file-manager\/\">Empty Trash<\/a>&nbsp;button within File Manager, it is possible that these trash folders can get quite large.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_cpanel\"><\/span>via cPanel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>These trash folders can be emptied within cPanel File Manager by clicking the &#8220;Empty Trash&#8221; button.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_ssh\"><\/span>via SSH<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>These trash folders are named&nbsp;<code>.trash<\/code>&nbsp;and are direct subdirectories of each user&#8217;s home directory. If logged into SSH as root, you can check which accounts are taking the most space with their File Manager trash folders as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~]# du -sch \/home*\/*\/.trash | sort -h | tail\n  4.0K\t  \/home\/user1\/.trash\n  4.0K\t  \/home\/user2\/.trash\n  4.0K\t  \/home\/user3\/.trash\n  12K\t  total<\/code><\/pre>\n\n\n\n<p>In this case, each of the trash folders is empty,&nbsp;but if you do need to remove items from the trash folders, you can do so with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # find \/home*\/*\/.trash -depth -mindepth 1 \\( \\( ! -type d -exec rm -v {} + \\) -o \\( -exec rmdir -v {} + \\) \\)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"trash_folders_%e2%80%93_imap\"><\/span>Trash Folders &#8211; IMAP<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>If your users use IMAP to connect to their mail folders, then when they delete messages via their mail client they will usually at first be moved to a trash folder. In cPanel servers, it is possible to configure the IMAP trash folders to &#8220;Autoexpunge&#8221;, which means that messages which have been in these trash folders a certain number of days will be automatically removed. Within the filesystem, these folders are named&nbsp;<code>.Trash<\/code>, capitalized, rather than lowercase like the File Manager trash folders.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"autoexpunge\"><\/span>Autoexpunge<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>In a cPanel server, The &#8220;Autoexpunge&#8221; option can be found in WHM at&nbsp;<code>Home &gt;&gt; Service Configuration &gt;&gt; Mailserver Configuration<\/code>. Also on this page is the option &#8220;Trash Expire Time&#8221; which controls how many days old a message is kept in the trash folder before it is automatically removed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_cpanel-2\"><\/span>via cPanel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>In order to find these&nbsp;<code>.Trash<\/code>&nbsp;folders within the File Manager, it is necessary first to make sure &#8220;Show Hidden Files (dotfiles)&#8221; is enabled in the&nbsp;<a href=\"https:\/\/docs.cpanel.net\/cpanel\/files\/file-manager\/\">Settings<\/a>. Once this has been done, you should be able to find the folders in their locations. There are two places to look:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>directly in the &#8220;mail&#8221; folder, that is,&nbsp;<code>mail\/.Trash<\/code>&nbsp;and<\/li><li>in each email account&#8217;s base folder, for example&nbsp;<code>mail\/domain.tld\/someemail\/.Trash<\/code><\/li><\/ul>\n\n\n\n<p>If you started File Manager from the site&#8217;s docroot,&nbsp;you will need to go up one level in order to see the mail folder.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_webmail\"><\/span>via Webmail<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p><em>If<\/em>&nbsp;you have&nbsp;<strong>not<\/strong>&nbsp;yet enabled the new&nbsp;<a href=\"https:\/\/docs.cpanel.net\/whm\/email\/mailbox-conversion\/\">mdbox<\/a>&nbsp;mailbox format, you can see the contents of the email accounts from the webmail interface of the overarching email account of the cPanel account&nbsp;<a href=\"https:\/\/docs.cpanel.net\/cpanel\/email\/email-accounts\/\">itself<\/a>. You may need to &#8220;subscribe&#8221; to the relevant folders in the settings within the preferred webmail application. But, if you have already converted from maildir format to the new mdbox format, the symlinks necessary for this method of access will not work.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_ssh-2\"><\/span>via SSH<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Since the Trash folders of IMAP are in two specific locations, they can be found from commandline, similarly to the trash folders of the File Manager. You can check their sizes as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~]# du -sch \/home*\/*\/mail\/{*\/*\/,}.Trash | sort -h | tail\n  16K\t  \/home\/user1\/mail\/.Trash\n  16K\t  \/home\/user2\/mail\/.Trash\n  16K\t  \/home\/user3\/mail\/.Trash\n  16K\t  \/home\/user4\/mail\/.Trash\n  16K\t  \/home\/user5\/mail\/.Trash\n  16K\t  \/home\/user6\/mail\/.Trash\n  24K\t  \/home\/user7\/mail\/.Trash\n  32K\t  \/home\/user7\/mail\/domain.tld\/address1\/.Trash\n  436K\t  \/home\/user7\/mail\/domain.tld\/address2\/.Trash\n  604K\t  total<\/code><\/pre>\n\n\n\n<p>In this example, the largest IMAP Trash folder is the one for address2@domain.tld, under cpanel account user7.<\/p>\n\n\n\n<p>You can also combine this technique with the one shown above, to find the sizes of all the file manager and imap trash folders together:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  root@host &#091;~]# du -sch \/home*\/*\/{.trash,mail\/{*\/*\/,}.Trash} | sort -h | tail\n  16K\t  \/home\/user1\/mail\/.Trash\n  16K\t  \/home\/user2\/mail\/.Trash\n  16K\t  \/home\/user3\/mail\/.Trash\n  16K\t  \/home\/user4\/mail\/.Trash\n  16K\t  \/home\/user5\/mail\/.Trash\n  16K\t  \/home\/user6\/mail\/.Trash\n  24K\t  \/home\/user7\/mail\/.Trash\n  32K\t  \/home\/user7\/mail\/domain.tld\/address1\/.Trash\n  436K\t  \/home\/user7\/mail\/domain.tld\/address2\/.Trash\n  616K\t  total<\/code><\/pre>\n\n\n\n<p>In this case, the largest file manager trash folder was smaller than the smallest imap trash folder.<\/p>\n\n\n\n<p>Similarly, if you want to empty all of the trash folders at once, you can do so as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  # find \/home*\/*\/{.trash,mail\/{*\/*\/,}.Trash} -depth -mindepth 1 \\( \\( ! -type d -exec rm -v {} + \\) -o \\( -exec rmdir -v {} + \\) \\)<\/code><\/pre>\n\n\n\n<p>And remember, if you need any help, you can always&nbsp;<a href=\"https:\/\/www.knownhost.com\/kb\/howto-login-my-knownhost\/\">open a Support Ticket<\/a>&nbsp;for assistance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is important to make sure that the server does not fully run out of disk space. If it does, the services running in the server will quit working, and some of the database tables could even become corrupted. Here are some things to consider, to help ensure that your server has enough disk space [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[239,177,109,143,123,125],"class_list":["post-419","post","type-post","status-publish","format-standard","hentry","category-guides","tag-backups","tag-cloud","tag-cpanel","tag-dedicated","tag-linux","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What are some useful tips for disk space management? - KnownHost<\/title>\n<meta name=\"description\" content=\"Running out of storage on your KnownHost server. Learn how to better manage disk space on KnownHost servers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are some useful tips for disk space management? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Running out of storage on your KnownHost server. Learn how to better manage disk space on KnownHost servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-29T12:16:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-16T20:48:53+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"What are some useful tips for disk space management?\",\"datePublished\":\"2021-06-29T12:16:27+00:00\",\"dateModified\":\"2026-02-16T20:48:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/\"},\"wordCount\":2866,\"keywords\":[\"backups\",\"cloud\",\"cpanel\",\"dedicated\",\"linux\",\"vps\"],\"articleSection\":[\"Guides\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/\",\"name\":\"What are some useful tips for disk space management? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-06-29T12:16:27+00:00\",\"dateModified\":\"2026-02-16T20:48:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"Running out of storage on your KnownHost server. Learn how to better manage disk space on KnownHost servers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/what-are-some-useful-tips-for-disk-space-management\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What are some useful tips for disk space management?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are some useful tips for disk space management? - KnownHost","description":"Running out of storage on your KnownHost server. Learn how to better manage disk space on KnownHost servers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/","og_locale":"en_US","og_type":"article","og_title":"What are some useful tips for disk space management? - KnownHost","og_description":"Running out of storage on your KnownHost server. Learn how to better manage disk space on KnownHost servers.","og_url":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/","og_site_name":"KnownHost","article_published_time":"2021-06-29T12:16:27+00:00","article_modified_time":"2026-02-16T20:48:53+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"What are some useful tips for disk space management?","datePublished":"2021-06-29T12:16:27+00:00","dateModified":"2026-02-16T20:48:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/"},"wordCount":2866,"keywords":["backups","cloud","cpanel","dedicated","linux","vps"],"articleSection":["Guides"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/","url":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/","name":"What are some useful tips for disk space management? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-06-29T12:16:27+00:00","dateModified":"2026-02-16T20:48:53+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"Running out of storage on your KnownHost server. Learn how to better manage disk space on KnownHost servers.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/what-are-some-useful-tips-for-disk-space-management\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"What are some useful tips for disk space management?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=419"}],"version-history":[{"count":1,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"predecessor-version":[{"id":8068,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/419\/revisions\/8068"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}