With a little bit of searching, it appears that the Genius Loci Package has a Delete Element from Document Node. I would start with that package if Python isn’t the best route for you.
View here for reference:
With a little bit of searching, it appears that the Genius Loci Package has a Delete Element from Document Node. I would start with that package if Python isn’t the best route for you.
View here for reference: