Disk cleaner
See exactly what can be freed, choose how much recent data to keep, clean on demand, and schedule an automatic cleanup so a full disk never surprises you.
A server fills up quietly: downloaded .deb packages nobody needs again, log
files that have grown for months, rotated archives, old kernels. Disk Cleaner
(under Server in the sidebar) measures each of those, tells you how much is in
it, and removes only what you tick.

The three cards at the top
- Disk space — percent full and the line "6.7 GB of 57 GB used · 50 GB free". Once a cleanup has run it also says Last cleaned and when.
- Can be freed — how much the items below would free, and how many items that is. The number follows the keep choice you pick (see below).
- Automatic cleanup — Off until you set it up, or the schedule in words (Runs every week · 3 items), with its next and last run. The button on the card opens the schedule.
What can be cleaned
What can be cleaned lists only the categories that have something in them, biggest first, each with its measured size. The categories with nothing to clean are named in one line under the list, Already clean: …. Hover the ⓘ next to a category for What this keeps.
| Category | What it removes |
|---|---|
| Package cache | Downloaded update files. Delete all empties the cache, a keep choice removes only downloads older than it. Installed packages keep working. |
| Unused packages | Automatically installed packages nothing depends on any more, and superseded kernels. The running kernel is kept. |
| System journal | systemd journal entries older than your keep choice. Delete all removes all of them. |
| Rotated logs | Rotated archives (.gz, .1, .old) under /var/log, older than your keep choice. Current logs are untouched. |
| Service logs | The current log files of running services. Delete all empties them (the files stay and the services keep writing). A keep choice empties only logs nothing has written to within it. |
| Application logs | Every hosted application's access and error logs and their rotated copies. A keep choice deletes rotated copies older than it and empties logs nothing has written to within it. |
| Temporary files | Files in /tmp and /var/tmp older than your keep choice. Delete all still keeps files written in the last hour, so running installs and uploads are not broken. |
| Unused Docker images | Docker images no container uses, and Docker's build cache. Listed only on servers where Docker is installed. Application data (volumes) is never touched, and a removed image is downloaded again when an application needs it. |
Show exact folders expands each row to the real paths it will touch, which is the honest answer to "but what exactly are you deleting". The refresh button next to it measures again; the line under the heading says how fresh the numbers are (Measured just now, Measured 3 minutes ago).
How much to keep
How much to keep is one choice for the whole cleanup: Delete all, or Keep 1 day, 3, 7 (recommended), 14 or 30 days. Anything newer than the choice is kept. The sizes in the list and the Can be freed card change with it. If nothing would be removed at your choice, the list says "Nothing to clean with this choice. A shorter one may free more."

Two categories have no age to keep by and always remove everything they cover: Unused packages and Unused Docker images. The choice does not apply to them.
Delete all means all
With Delete all the confirmation says "Everything in … is removed, including today's. This cannot be undone." For Application logs it adds "Applications lose their visitor and error history." If you are in the middle of investigating a traffic problem, download what you need from System logs first.
Unused packages carries a Check first tag. Every other category removes files that can be regenerated; this one removes packages (and their configuration) on the strength of apt's own "automatically installed" marks, which can be wrong on a server that was migrated or built by a script. The panel therefore wants you watching: it is the only category with the tag, and it cannot be scheduled.
Clean up now
-
Tick the categories you want, or Select all cleanable, which ticks every category that has something in it. The line at the bottom reads "1 item selected · about 15 KB" and the button reads Clean up 15 KB. With nothing ticked it says "Choose something to clean first."
![The Disk Cleaner list with Show exact folders open: Rotated logs ticked with its folders /var/log//*.gz, /var/log//.[0-9] and /var/log/**/.old, excluding /var/log/mysql, and the Clean up 15 KB button](/_next/static/media/disk-cleaner-3.04-qpundf2d23.webp)
-
Click Clean up and read the confirmation Clean up these items?. It says "This cannot be undone.", lists each item with its size and folders, the Total, and your choice (Choice: Keep 7 days (recommended)). If any ticked item empties live log files it adds "Active log files are emptied, not deleted." If a ticked item is Check first, it warns "Check these before continuing: …".

-
Click Clean up. It can take a minute on a busy server ("Working — this can take a minute on a busy server."). When it ends the screen says "Freed 15 KB. The disk is now 12% full." and measures again.
If it cannot finish, the message reads "The cleanup could not be completed."
Recent cleanups at the bottom keeps the history, with the columns When, What was cleaned, How (By hand or Automatic), Disk after and Freed. A run that failed says Failed.
Automatic cleanup
Click the button on the Automatic cleanup card (Set up automatic cleanup) to open the dialog.

- Turn on Clean up automatically. The other fields stay disabled until it is on ("Turn the schedule on to choose when it runs.").
- Choose How often: Every hour, Every day, Every week or Every month. Day, week and month runs start at 03:00 (weekly on Sunday, monthly on the 1st); the hourly run starts on the hour. The card shows the next run with its time zone.
- Choose Disk usage: Any (clean every time), or Over 50%, 60%, 70%, 80%, 85% or 90%. With a threshold, nothing happens on a disk that is not that full yet, so a routine run does not touch a mostly empty disk. (A schedule saved with another percentage keeps it. The API accepts 1 to 99.)
- Choose How much to keep. With Delete all the dialog suggests pairing it with a threshold (Use 85%): it clears every log whenever it runs.
- Under What to clean, tick at least one item. Only items that are safe to remove without you present are listed, so Unused packages is not. Save is disabled until you tick one ("Choose at least one thing to clean, or switch automatic cleanup off above.").
- Click Save schedule. "Automatic cleanup updated." The card shows the schedule and when it runs next.
The schedule runs from the panel's own scheduler, not from a cron job, so it never shows up in Cron jobs. To stop it, switch Clean up automatically off and save. A schedule saved before the keep choice existed says so in the dialog: until you save again it keeps 7 days of journal and temporary files and removes everything else it covers.
Limits
- Nothing is deleted until you confirm, or until the schedule runs. Measuring is read-only.
- Emptied is not deleted. Live log files are truncated so the service writing to them keeps working; it is the rotated archives that are removed.
- The sizes are a measurement, not a promise. The disk may free slightly more or less, for example where a process still holds a deleted file open.
- It cleans the system, not your applications' own folders. Old releases, build
caches and
node_modulesinside an application directory are yours to manage — see that application's Files screen. - The keep choices are fixed: delete all, or keep 1, 3, 7, 14 or 30 days.
Who can do this
- The Disk cleaner permission: View shows the measurements, the schedule and the history; Manage is needed to clean and to change or turn off the schedule. With View only you see the measurements, but the tick boxes and the Clean up button are not offered and the schedule button is disabled.
Common errors
- We couldn't read this server's disk usage. — the panel could not measure the disk. Reload; if it persists, check System logs.
- The cleanup could not be completed. — read the detail the server adds, then measure again to see what was cleaned.
- The schedule could not be saved. — usually no item ticked, or an item that is not available on this server.