Home Explore Blog Models 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
04582c9f (1st chunk of `src/nix/store-gc.md`)
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.