Home Explore Blog Models CI



nix

1st chunk of `src/nix/registry-remove.md`
7f2028686d0b712ca4b891e249b2bbb856ac2816ca032f3e0000000100000173
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*.

)""

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.