Home Explore Blog CI



nix

1st chunk of `src/nix/store-gc.md`
d929e270fe3fd1ca9fef392b5aa35f298498ffc91397301b0000000100000107
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 Garbage Collection: Examples and Description
Summary
This section provides examples of how to use the `nix store gc` command to delete unreachable paths in the Nix store. It also describes the command's basic function, which is to remove unused paths to free up space.