aboutsummaryrefslogtreecommitdiff
path: root/src/nix/store-gc.md
diff options
context:
space:
mode:
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.
+
+)""