My Linux VPS disk is full. How do I free up space?

1 min read|Updated Nov 21, 2026

Short answer

Run df -h to confirm, then du to find the folder that grew. It is almost always logs, Docker, package caches or backups. Shrink the journal with journalctl --vacuum-size=200M, run apt clean and prune unused Docker images.

  1. 01

    Confirm it

    df -h / shows the space used. If it's not full, check df -i / for inodes.

  2. 02

    Find the folder

    du -xh --max-depth=1 / | sort -h, then the same inside the biggest folder.

  3. 03

    Free the usual suspects

    journalctl --vacuum-size=200M, apt clean, docker image prune -a. Don't use --volumes on a server with databases.

  4. 04

    Restart what broke

    systemctl --failed lists services that stopped, then systemctl restart each one.

Plans have 10, 20, 40 or 80 GB NVMe. If the space is real data you want to keep, order a plan with a bigger disk and move over; a running server can't be resized in place.

Did this solve it?

The full guide

Linux VPS Disk Full? Find and Free Space Safely

6 min read

Related questions

Still stuck? Message support