aboutsummaryrefslogtreecommitdiff
path: root/src/nix/store-gc.md
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-10 23:20:02 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-10 23:29:14 +0100
commitfdcd62eec59485665b919c048874de05235b5971 (patch)
tree426979f3aef57fa692299a4933fac7f5bc4c5ee4 /src/nix/store-gc.md
parente21aee58f6dd7785df50d5d2a473feb5f6b2ed4f (diff)
Add 'nix store gc' command
Diffstat (limited to 'src/nix/store-gc.md')
-rw-r--r--src/nix/store-gc.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nix/store-gc.md b/src/nix/store-gc.md
new file mode 100644
index 000000000..956b3c872
--- /dev/null
+++ b/src/nix/store-gc.md
@@ -0,0 +1,21 @@
+R""(
+
+# Examples
+
+* Delete unreachable paths in the Nix store:
+
+ ```console
+ # nix store gc
+ ```
+
+* Delete up to 1 gigabyte of garbage:
+
+ ```console
+ # nix store gc --max 1G
+ ```
+
+# Description
+
+This command deletes unreachable paths in the Nix store.
+
+)""