Automation triggered on entity deleted

You can trigger an automation on entity creation (potentially creating linked sub-entities) but unless I’m mistaken, you cannot trigger au automation on deletion (to destroy the linked sub-entities).
Would that be feasible?
I see this as a complement to this : [Automations] Deleting entities with nested collections

If there is a link (relation) between entities, try the “Entity unlinked from…” in the When part of the automation rule.

1 Like

If you’re talking about deleting child items when a parent item is deleted, the solution is to create an automation on the ‘child’ database (not the ‘parent’ database). The trigger should be ‘Parent field is updated’ with filter ‘Parent field is empty’, and the action is ‘Delete’.

1 Like

Thanks, that should do the trick indeed :slight_smile: