from aiida.orm import QueryBuilder, CalcJobNodeThe query first gets all the pks of all CalcJobNodes which it then passes to `delete_nodes`.
pks = QueryBuilder().append(CalcJobNode, project='id').all(flat=True)
delete_nodes(pks)
--
AiiDA is supported by the NCCR MARVEL (http://nccr-marvel.ch/), funded by the Swiss National Science Foundation, and by the European H2020 MaX Centre of Excellence (http://www.max-centre.eu/).
Before posting your first question, please see the posting guidelines at http://www.aiida.net/?page_id=356 .
---
You received this message because you are subscribed to the Google Groups "aiidausers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aiidausers+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aiidausers/6a423a81-5867-47f3-8bca-dc06f0437c98n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aiidausers/022c98a3-1c5e-33a5-99cc-09becd52cbe8%40sphuber.net.
Hi,
I followed your suggestions. But still the nodes are showing.
################delete_nodes(pks)
Report: 330 Node(s) marked for deletion
Report: This was a dry run, exiting without deleting anything
#############
Does it run successfully?Pradip
On Tue, Jun 6, 2023 at 1:17 PM Sebastiaan Huber <ma...@sphuber.net> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/aiidausers/022c98a3-1c5e-33a5-99cc-09becd52cbe8%40sphuber.net.
--
AiiDA is supported by the NCCR MARVEL (http://nccr-marvel.ch/), funded by the Swiss National Science Foundation, and by the European H2020 MaX Centre of Excellence (http://www.max-centre.eu/).
Before posting your first question, please see the posting guidelines at http://www.aiida.net/?page_id=356 .
---
You received this message because you are subscribed to the Google Groups "aiidausers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aiidausers+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aiidausers/CA%2B3xtf2JTUredLzwSh5%2BGJ%2B6mCcpXG0xx3tfdiOtrKFDJP4N%3DA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aiidausers/e365416d-6feb-41af-864e-62a8794886fb%40edison.
To view this discussion on the web visit https://groups.google.com/d/msgid/aiidausers/CA%2B3xtf3KTbNbdzL_1KAYY%2BMN8pzqog-g3Z7QnhAwf7FX7T1DHg%40mail.gmail.com.