nh clean
Clean Nix profiles and delete unused and unreachable Nix store paths. Generations can be listed using
nix-env --list-generationsornh os info. More information: https://github.com/nix-community/nh#usage.
- Ask for clean up plan confirmation, clean all profiles, and collect garbage:
nh clean all
- Keep a specified number of the most recent profiles for the current user and clean the remaining profiles:
nh clean user
- Clean a specific profile and collect garbage:
nh clean profile
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
