Home Explore Blog CI



nix

src/nix/store-gc.md
898fee48a7c03167d1fd84e1cfa9313ac15f73ebe134568c0000000300000107
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.

)""

Chunks
d929e270 (1st chunk of `src/nix/store-gc.md`)
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.