cleanout(1)
cleanout(1) β General Commands Manual π β¨
okay so bestie, this is the cleanout(1) page from the General Commands Manual β and it's literally all about cleaning out old profile generations. π
πΈ NAME πΈ
cleanout β Clean out old profile generations
β¨ SYNOPSIS β¨
cleanout [-p|--preset] [-C|--config] [--keep-min] [--keep-max]
[--keep-newer] [--remove-older] [-g|--generation] [-n|--non-interactive]
[-i|--interactive] [--gc] [--gc-bigger] [--gc-quota] [--gc-modest]
[-d|--dry-run] [--no-size] [-h|--help] <PROFILES>
π¦ DESCRIPTION π¦
Clean out old profile generations. That's the mission, bestie. π
The way that positive criteria (e.g. --keep-min, --keep-newer) are highkey prioritized over negative ones (e.g. --keep-max, --remove-older) β periodt. Passing 0 on any cleanout criterion will reset it to the default behavior.
The latest generation as well as the currently active one will not be removed, even if they match the specified criteria. No cap. If you want to delete those generations or the entire profile, you will have to do so manually. π
β οΈ Please beware of the risks of this operation and the impact it may have on your system state.. π
π OPTIONS π
-p,--preset<PRESET>[default: default]β settings for clean out criteria-C,--config<CONFIG>β alternative config file--keep-min<KEEP_MIN>β keep at least this many generations
Pass 0 to unset this option.
--keep-max<KEEP_MAX>β keep at most this many generations
Pass 0 to unset this option.
--keep-newer<KEEP_NEWER>β keep all generations newer than this many days
Pass 0 to unset this option.
--remove-older<REMOVE_OLDER>β discard all generations older than this many days
Pass 0 to unset this option.
-g,--generation<GENERATION>β remove these specific generations
You can pass the option multiple times to remove multiple generations.
-n,--non-interactiveβ do not ask before removing generations or running garbage collection-i,--interactiveβ ask before removing generations or running garbage collection--gcβ run GC afterwards--gc-bigger<GC_BIGGER>β only perform gc if the store is bigger than BIGGER Gibibytes--gc-quota<GC_QUOTA>β only perform gc if the store uses more than QUOTA% of its device--gc-modestβ collect just as much garbage as to match--gc-biggeror--gc-quota-d,--dry-runβ list, but do not actually delete old generations--no-sizeβ do not calculate the size of generations-h,--helpβ print help (see a summary with'-h')<PROFILES>β profiles to clean out; valid values:system,user,home,<path_to_profile>
that's the cleanout(1) page from the General Commands Manual β no extra date/version stamp in the footer, bestie. mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: nix-sweep 0.8.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms