CmdID

CmdID / Commands

nix-collect-garbage

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

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-oldIdentify

Simulate the deletion of old store paths

nix-collect-garbage --delete-old --dry-runIdentify

Delete all store paths older than 30 days

nix-collect-garbage --delete-older-than 30dIdentify

Delete all store paths unused by the current generation of each profile system-wide

sudo nix-collect-garbage --delete-oldIdentify