Windows temporary directory cleanup tool.
To develop the program, .NET SDK 6.0 or later is required.
Simply execute Vacuum.exe
. It will remove any entries in your temp directory
that weren't touched in the last month.
"Entry" is either a file or a directory. Directory counts as "touched" if any of its children was touched in the month period. Vacuum considers the following dates when examining the files (as they're reported by the filesystem):
- creation date
- last write date
Main command-line arguments:
(-d|--directory) <path>
: path to the temporary directory which should be cleaned up. Falls back toPath.GetTempPath
by default (which uses certain environment variables to determine the path).(-p|--period) <number>
: number of days for entry to be untouched before being deleted by Vacuum. 30 by default.(-s|--space) (<number>|<number>k|<number>m)
amount of space to clean up (k
= kibibytes, m = mebibytes). In space-cleaning mode, Vacuum will still clean up the oldest items first.(-f|--force)
: forces Vacuum to delete the entries it wasn't able to recycle.(-w|--what-if)
: only prints the files that will be deleted instead of actually deleting them.(-v|--verbose)
: show exception call stacks.
Consult the embedded help system for the detailed parameter manual:
$ Vacuum.exe --help
To download Vacuum binary distribution, please visit GitHub releases section.