Describe the bug
Passing a flake attribute to nix store delete will first cause it to be downloaded before being deleted. This is a bit unintuitive.
Steps To Reproduce
✗ nix store delete nixpkgs#hello
this path will be fetched (0.05 MiB download, 0.26 MiB unpacked):
/nix/store/aiblla3swfhcv348k8h10mnsg35wzvm6-hello-2.12.2
1 store paths deleted, 0.00 MiB freed
Expected behavior
I think it should instead error saying that it does not exist.
Metadata
nix-env (Nix) 2.31.2
Additional context
Checklist
Add 👍 to issues you find important.