Maintenance · about 1 min · 3 steps
Clean up temporary files
Deletes old files from /tmp and /var/tmp to free disk space, skipping anything a running program is using.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported
- Alpine: supported
What it changes on your server
- Deletes regular files in /tmp and /var/tmp not changed for the days you choose.
- Never touches other folders, sockets, links, lock or PID files, services' private temporary folders, or files a program has open.
What Shellbay asks you
How old should files be before they're deleted?
Files not changed for more than this many days are deleted. 7 is safe for most servers; programs rarely keep temporary files that long.
- Older than (days)
- A whole number from 1 to 365. Default:
7
Example:
7
Steps
- Count old temporary files
- Delete them
- Check they're gone
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- Temporary files older than ‹older than (days)› days were removed.