Forrest logo
back to the nix-store tool

nix-store:tldr:098e3

nix-store: Delete a specific store path (must be unused).
$ nix-store --delete ${-nix-store----}
try on your machine

The command nix-store --delete ${-nix-store----} is used to delete a specific derivation or store path from the Nix store.

Here is the breakdown of the command:

  • nix-store: This is the command-line utility in Nix package manager used for managing the Nix store.
  • --delete: This flag instructs nix-store to delete the specified path or derivation from the Nix store.
  • ${-nix-store----}: This represents the store path or derivation that you want to delete.

The ${-nix-store----} is a placeholder notation and should be replaced with the actual path or derivation you want to delete. The full command should have the store path enclosed within backticks or quotes, like this: nix-store --delete '/nix/store/abcd...xyz'.

Be cautious when using the nix-store --delete command, as it permanently deletes the specified path and its dependencies from the Nix store.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nix-store tool