Getting Started

Managing Disk Space

Published · Updated 2 min read
Knowledge base article
Contents (9 sections)

Keep your hosting account running smoothly by managing disk usage.

Check Current Usage

  • cPanel: See disk usage on the right sidebar or go to Disk Usage
  • DirectAdmin: Check Account ManagerDomain Usage

Common Space Consumers

  1. Email accounts — Old emails with attachments
  2. Backups — Old backup files left in the account
  3. Logs — Access and error logs growing over time
  4. Trash/Junk — Deleted files still in trash
  5. Database — Large or unoptimized databases

Freeing Up Space

Clean Email

  • Delete old emails with large attachments
  • Empty Trash and Junk folders
  • Set up auto-purge for trash (30 days)

Remove Old Backups

  • Delete manual backups from /home/username/
  • Old cPanel backups often end in .tar.gz

Clean Logs

  • In cPanel → MetricsRaw Access → delete or archive old logs
  • Disable raw log archiving if not needed

Optimize Databases

  • In phpMyAdmin → Select database → Check all tables → Optimize
  • Remove unused tables or data

Find Large Files

Via SSH:

code
du -sh /home/username/* | sort -rh | head -20
find /home/username -size +50M -type f

Upgrading

If you consistently need more space, consider upgrading your hosting plan through your dashboard.

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app
Managing Disk Space - Knowledge Base