Skip to content

Stabilise nix store delete #8916

@fricklerhandwerk

Description

@fricklerhandwerk

This implements NixOS/rfcs#136. This issue is agreed-upon by the @nixOS/nix-team

Required changes:

  • provide better information about why something was not deleted
  • add this behavior: nix store delete ./result should delete the linked store path, the symlink, and the GC root
    • currently it can't delete the store path because it's resolved first, and recognised as linked to, leading to an inscrutable error message
  • document that resolving the argument to a store path takes precedence
    • example: if you have a flake in a store path, the argument is taken as a store path, not as a flake.
    • installable resolution is a global issue though, and we will address this in a global review pass of the CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRelated to an accepted RFCidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.new-cliRelating to the "nix" command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions