How do I delete all of type plus associated types?

Fixed parenting. I actually have a tree of objects:

A:
– B:
-----C
– B:
A:
– B:

query doesn’t need to be GraphQL, just need a way to delete the tree of objects.

EDIT: looks like I need to use an upsert like this: How to bulk delete nodes or cascade delete nodes? - #2 by MichelDiz

EDIT: seemed to work:

1 Like