Skip to content

✨ Add --clean-workdir to verdi group delete#7315

Open
officialasishkumar wants to merge 1 commit intoaiidateam:mainfrom
officialasishkumar:feature/7299-group-delete-clean-workdir
Open

✨ Add --clean-workdir to verdi group delete#7315
officialasishkumar wants to merge 1 commit intoaiidateam:mainfrom
officialasishkumar:feature/7299-group-delete-clean-workdir

Conversation

@officialasishkumar
Copy link
Copy Markdown

@officialasishkumar officialasishkumar commented Apr 11, 2026

Fixes #7299

This adds --clean-workdir to verdi group delete when used together with --delete-nodes. The implementation reuses the existing node deletion cleanup flow so the same dry-run, confirmation, already-cleaned, and stash-warning behavior is shared.

Validation:

  • pytest tests/cmdline/commands/test_group.py -k "delete_clean_workdir or test_delete"
  • pytest tests/cmdline/commands/test_node.py -k node_delete with the local venv bin directory on PATH for subprocess-based cases
  • python3 -m compileall -q src/aiida/cmdline/commands/cmd_node.py src/aiida/cmdline/commands/cmd_group.py tests/cmdline/commands/test_group.py
  • ruff check --ignore PLC0415 src/aiida/cmdline/commands/cmd_node.py src/aiida/cmdline/commands/cmd_group.py tests/cmdline/commands/test_group.py

Support cleaning remote CalcJobNode work directories when deleting group nodes, reusing the existing node deletion cleanup flow and adding CLI coverage for the new option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --clean-workdir option to verdi group delete

1 participant