Home Explore Blog Models CI



nix

1st chunk of `src/nix/store-gc.md`
04582c9fe22cb1de62d70da18fb0287562625851a56c38870000000100000107
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.

)""

Title: nix store gc Command
Summary
This document describes the `nix store gc` command, which is used to delete unreachable paths in the Nix store. It provides examples demonstrating how to perform a general garbage collection and how to limit the amount of garbage deleted, such as to a maximum of 1 gigabyte.