Autoremove for files: clean caches, build artifacts, editor junk.
$HOME (safety-first)
filedust # scan current dir (within $HOME)
filedust ~/src/project
filedust --dry-run ~/src/project
filedust -y ~/src/project
wget -O ~/.filedust.conf https://git.sysmd.uk/guardutils/filedust/raw/branch/main/.filedust.conf.example
$HOME).Out of the box, filedust targets common clutter like:
__pycache__/
.pytest_cache
.mypy_cache
.ruff_cache
build/
dist/
*~
*.swp
*.tmp
.DS_Store
Thumbs.db
filedust doesn't run outside of your $HOME.Everything for this tool on one page: options, behaviour notes, and copy-paste examples.
wget -O ~/.filedust.conf https://git.sysmd.uk/guardutils/filedust/raw/branch/main/.filedust.conf.example
Then edit ~/.filedust.conf to add or remove rules.
--dry-run while tuning rules.filedust refuses to operate outside your $HOME directory.
filedust /var/log
# Error: Refusing to operate outside the user's home directory.
When not using --dry-run or -y, filedust asks once at the end (default No).
Cleanup confirmation
Do you want to clean this up? (y/N)
filedust
filedust ~/src/project
If no path is given, filedust scans the current directory.
filedust --dry-run ~/src/project
Shows what would be deleted but performs no deletions.
Skip the confirmation prompt and delete immediately:
filedust -y ~/src/project
filedust --version