CmdID

CmdID / Commands

nh-clean

Clean Nix profiles and delete unused and unreachable Nix store paths. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Clean Nix profiles and delete unused and unreachable Nix store paths. Generations can be listed using nix-env --list-generations or nh os info.

Ask for clean up plan confirmation, clean all profiles, and collect garbage

nh clean all --askIdentify

Keep a specified number of the most recent profiles for the current user and clean the remaining profiles

nh clean user --keep numberIdentify

Clean a specific profile and collect garbage

nh clean profile path/to/profileIdentify