Nix Cookbook: Difference between revisions
imported>Nix |
imported>Nix →Reclaim space on Nix install?: add delete-generations info |
||
Line 13: | Line 13: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
To remove all | To keep just your current generation and the two older than it: | ||
<syntaxHighlight lang=shell> | |||
$ nix-env --delete-generations +3 | |||
</syntaxHighlight> | |||
To remove all but your current generation: | |||
<syntaxHighlight lang=shell> | |||
$ nix-env --delete-generations old | |||
</syntaxHighlight> | |||
==== Garbage collection ==== | ==== Garbage collection ==== |