DOKK / manpages / debian 12 / nix-bin / nix3-registry-remove.1.en
nix3-registry-remove(1) General Commands Manual nix3-registry-remove(1)

Warning: This program is experimental and its interface is subject to change.

nix registry remove - remove flake from user flake registry

nix registry remove [option…] url

Remove the entry nixpkgs from the user registry:

# nix registry remove nixpkgs
Remove the entry nixpkgs from a custom registry:

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

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

--registry registry
The registry to operate on.