diff --git a/doc/manual/packages/garbage-collection.xml b/doc/manual/packages/garbage-collection.xml
index 05a06d6f4..03b8e4c97 100644
--- a/doc/manual/packages/garbage-collection.xml
+++ b/doc/manual/packages/garbage-collection.xml
@@ -37,7 +37,14 @@ generations, e.g.,
$ nix-env --delete-generations 10 11 14
-
+To delete all generations older than a specified number of days
+(except the current generation), use the d
+suffix. For example,
+
+
+$ nix-env --delete-generations 14d
+
+deletes all generations older than two weeks.
After removing appropriate old generations you can run the
garbage collector as follows: