Configuration
Config File Location
Section titled “Config File Location”~/.config/clean-wizard/config.yamlOverride with the --config flag or CLEAN_WIZARD_CONFIG environment variable.
Full Example
Section titled “Full Example”# Preset definitionspresets: quick: cleaners: [homebrew, go, node, tempfiles, buildcache]
standard: cleaners: [homebrew, go, node, cargo, tempfiles, buildcache, systemcache, docker, nix]
aggressive: cleaners: [all] include_dangerous: true
# Per-cleaner settingsnix: keep_generations: 5
docker: timeout: 2m include_volumes: true
tempfiles: older_than: 7d exclude_paths: - /tmp/important-*
# Output settingsoutput: json: false verbose: falseEnvironment Variables
Section titled “Environment Variables”| Variable | Description |
|---|---|
CLEAN_WIZARD_CONFIG |
Path to config file |
CLEAN_WIZARD_DRY_RUN |
Default dry-run mode |
CLEAN_WIZARD_VERBOSE |
Default verbose mode |
Per-Cleaner Settings
Section titled “Per-Cleaner Settings”nix: keep_generations: 5 # Generations to keep (besides current)Docker
Section titled “Docker”docker: timeout: 2m # Operation timeout include_volumes: true # Remove unused volumesTempFiles
Section titled “TempFiles”tempfiles: older_than: 7d # Age threshold exclude_paths: # Glob patterns to skip - /tmp/important-* - /var/tmp/myapp-*BuildCache
Section titled “BuildCache”buildcache: older_than: 30d # Only clean caches older than thisProfiles
Section titled “Profiles”Profiles let you override settings for specific use cases:
presets: ci-cleanup: cleaners: [go, node, tempfiles] include_dangerous: false
nix: keep_generations: 3clean-wizard clean --profile ci-cleanup