about summary refs log tree commit diff
path: root/doc/manual/packages/garbage-collection.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/packages/garbage-collection.xml')
-rw-r--r--doc/manual/packages/garbage-collection.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/manual/packages/garbage-collection.xml b/doc/manual/packages/garbage-collection.xml
index ae28c485f076..03b8e4c976c1 100644
--- a/doc/manual/packages/garbage-collection.xml
+++ b/doc/manual/packages/garbage-collection.xml
@@ -37,7 +37,14 @@ generations, e.g.,
 <screen>
 $ nix-env --delete-generations 10 11 14</screen>
 
-</para>
+To delete all generations older than a specified number of days
+(except the current generation), use the <literal>d</literal>
+suffix. For example,
+
+<screen>
+$ nix-env --delete-generations 14d</screen>
+
+deletes all generations older than two weeks.</para>
 
 <para>After removing appropriate old generations you can run the
 garbage collector as follows:
@@ -67,4 +74,4 @@ is a quick and easy way to clean up your system.</para>
 
 <xi:include href="garbage-collector-roots.xml" />
 
-</chapter>
\ No newline at end of file
+</chapter>