mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
448 B
448 B
nix-collect-garbage
Delete unused and unreachable nix store paths. Generations can be listed using
nix-env --list-generations
.
- Delete all store paths unused by current generations of each profile:
sudo nix-collect-garbage --delete-old
- Simulate the deletion of old store paths:
sudo nix-collect-garbage --delete-old --dry-run
- Delete all store paths older than 30 days:
sudo nix-collect-garbage --delete-older-than {{30d}}