# What to Do When a VPS Disk Is Full

https://www.idebilisim.com/en/knowledgebase/article/vps-disk-full-what-to-do

**Identify which filesystem is full and whether space or file count is exhausted before deleting anything.**

## Distinguish space from inode use

On Linux, `df -h` shows filesystem space and `df -i` shows inode usage. A large number of small files may block writes even when gigabytes appear free.

## Protect data and evidence

Check backups, mail, logs and databases separately. Do not blindly delete database files or system logs. Verify retention first; use additional capacity or move verified archives to safe storage when needed.

## What should be checked after freeing space?

Confirm that the database and site can write, errors have stopped and enough space remains for the next backup.

## Related guides and references

- [Diagnosing an HTTP 503 on a VPS or VDS](https://www.idebilisim.com/en/knowledgebase/article/vps-website-503-troubleshooting)
- [How to Test a VPS Backup with a Safe Restore](https://www.idebilisim.com/en/knowledgebase/article/vps-backup-restore-test)
- [Why Is My VDS Slow? How to Check CPU, RAM and Disk Usage](https://www.idebilisim.com/en/knowledgebase/article/why-is-my-vds-slow-how-to-check-cpu-ram-and-disk-usage)
