-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to verdi group delete
to delete nodes themselves
#4358
Comments
Agreed on both points! I tend to make I've also wondered why the Your suggestion for how
Maybe these should be put in a different issue though? Either way, I'm happy to work on this. |
Since @sphuber originally introduced the As for the other two commands, I can see the use but I'm not enough of a Group power user whether they are needed
I would prefer that.
Great! Let's wait for a little more feedback from others. |
As my commit message explained, the force flag bundled two different parts of the behavior: ignoring the prompt, and deleting groups even if they contained nodes. You can check the old implementation that my commit changes to see this. Given that old meaning of the force flag, I found the behavior dangerous and so decided to make it explicit without changing the actual behavior of treating filled groups different from empty ones. That being said, I agree with the proposed new behavior and think that makes more sense. So if we are changing the behavior and interface, then I am all on board with @ltalirz 's suggestion.
Agree that this would be useful, but should indeed go in a separate feature request issue. Would be accepted feature request for me.
This actually already exists: |
Alright, I'll start working on this and open a PR!
Will open an issue then! Another idea that I had (which I don't think we have as a feature now?) is introducing
This just removes the nodes from the group, right? I meant deleting the nodes that are in a group, as in my example the calculations won't be useful, so we can just delete them entirely. |
this was addressed in #4578 |
So far,
verdi group delete
only acts on groups - there is no option to also delete the nodes inside a group.It would be useful if there was an option
--delete-nodes
(or similar) that allows to delete both the group as well as the nodes it contains.As mentioned by @sphuber, this should be followed by the usual prompt listing the number of nodes actually to be deleted (when including the provenance rules).
P.S. This is just a minor nitpick but I actually prefer the
verdi node delete
command without the--clear
option introduced here.In particular, it is not obvious to me why deleting a group that contains nodes should be treated any different than deleting a group that doesn't contain nodes - after all, it is only the group instance being deleted in both cases (happy to be convinced otherwise).
Here is what I would suggest:
-f/--force
flag, no prompt is shown and the group is deleted--delete-nodes
flag, a prompt is shown that describes how many nodes the group contains as well as how many nodes would be deleted (usually more). The prompt includes some sort of warning sign, similar to what appears inverdi node delete
--force
and--delete-nodes
, no prompt is shown.The text was updated successfully, but these errors were encountered: