Option to delete entities linked through a required field

When trying to delete an entity that is linked to other entities that requires that relationship field to be completed, you are prevented from deleting the first entity.

Instead, you have to go and delete all the other entities first that are linked to the initial entity. Before being able to delete the initial entity.

In the scenario it be so much nicer if the user was offered the option to delete everything at once.

2 Likes

What do you think if it would be setting on the relationship level? You can set each relationship to have different “On Delete” setting for either side.

Detailed here: On delete setting/strong relations for relation settings

Would it solve it?

I think that works, and would be an improvement to the current capabilities.

I also think automations/settings are rigid. Whether you want children entire to be deleted, unlinked, linked to a new entity, or prevented, could be different case by base for a given entity.

However, I think it’s a good feature idea for the admin to be able set which options are allowable for entires that are unlinked. And I like your ideas from a data validation standpoint.

Side note: Data validation is largely missing from Fibery, and I’d like to see it added. It would be a great pro feature. Maybe I’ll do a write up there.