nix-collect-garbage: add page (#2090)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
c43bf37ea2
commit
0cfcd52193
16
pages/common/nix-collect-garbage.md
Normal file
16
pages/common/nix-collect-garbage.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# 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}}`
|
Reference in New Issue
Block a user