nix-collect-garbage
Delete unused and unreachable nix store paths. tldr-pages
On several platforms
Several platforms
Delete unused and unreachable nix store paths. Generations can be listed using nix-env --list-generations.
Delete all user related store paths unused by current generations of each profile
nix-collect-garbage --delete-oldIdentifySimulate the deletion of old store paths
nix-collect-garbage --delete-old --dry-runIdentifyDelete all store paths older than 30 days
nix-collect-garbage --delete-older-than 30dIdentifyDelete all store paths unused by the current generation of each profile system-wide
sudo nix-collect-garbage --delete-oldIdentify