Home Explore Blog Models CI



nix

src/nix/registry-remove.md
ef97c18ee4d3a66799c8a9f41468127c5195b03c68f6abee0000000300000173
R""(

# Examples

* Remove the entry `nixpkgs` from the user registry:

  ```console
  # nix registry remove nixpkgs
  ```

* Remove the entry `nixpkgs` from a custom registry:

  ```console
  # nix registry remove --registry ./custom-flake-registry.json nixpkgs
  ```

# Description

This command removes from the user registry any entry for flake
reference *url*.

)""

Chunks
7f202868 (1st chunk of `src/nix/registry-remove.md`)
Title: Nix Registry Remove Command
Summary
This section explains how to remove entries from a Nix flake registry using the `nix registry remove` command. It provides examples for removing an entry like `nixpkgs` from the default user registry, and also demonstrates how to specify a custom registry file using the `--registry` flag. The command removes the entry associated with a given flake reference URL.