mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
55c204c085
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
582 B
582 B
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 {{[-a|--ask]}}
- Keep a specified number of the most recent profiles for the current user and clean the remaining profiles:
nh clean user {{[-k|--keep]}} {{number}}
- Clean a specific profile and collect garbage:
nh clean profile {{path/to/profile}}