2018-05-06 10:38:47 +01:00
|
|
|
# nix-collect-garbage
|
|
|
|
|
|
|
|
> Delete unused and unreachable nix store paths.
|
|
|
|
> Generations can be listed using `nix-env --list-generations`.
|
2019-06-04 10:00:10 +01:00
|
|
|
> More information: <https://nixos.org/releases/nix/latest/manual/#sec-nix-collect-garbage>.
|
2018-05-06 10:38:47 +01:00
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
nix, nix-build, nix-env, nix-collect-garbage, nix-shell: add German translation (#9365)
* nix, nix-build, nix-env, nix-collect-garbage, nix-shell: add German translation
* nix, nix-build, nix-env, nix-collect-garbage, nix-shell: apply suggestions from code review
* nix, nix-build, nix-env, nix-collect-garbage, nix-shell: Applied changes
from German code review to originals
* Update pages.de/common/nix-collect-garbage.md
2022-12-22 01:11:42 +00:00
|
|
|
`sudo nix-collect-garbage --delete-older-than 30d`
|