Help

This Product Ideas board is currently undergoing updates, but please continue to submit your ideas.

Deleting Child records / Cascade Delete

cancel
Showing results for 
Search instead for 
Did you mean: 
Julian_Kirkness
10 - Mercury
10 - Mercury

I was surprised to find that if I deleted a linked record from the ‘Parent’ side of a relationship that the child record was still present in the other table - but orphaned.

I can see how this behaviour is desirable if the link is set up to allow links to multiple records but in a one to many I would expect the record to be deleted rather than Orphaned.

This is even more the case if the ‘parent record’ is deleted - and I note that in this case the record is orphaned as well.

This leads to a messy database and can be very confusing for users.

Could we have options in the link definition to enable cascade delete and also delete record when link deleted?

10 Comments
Matthew_Billiod
6 - Interface Innovator
6 - Interface Innovator

Im thinking this will be a ways away. We don’t even have query capability yet.

Debra_Russell
4 - Data Explorer
4 - Data Explorer

Airtable absolutely has to have this. Orphaned records aren’t acceptable…neither is asking your user to go in manually and delete child records. I wonder what kind of database underlies airtable. Is it a relational database that isn’t in 1NF?

Well, at least I know it’s an airtable issue and not my being a complete noob at airtable.

So what’s the solution until airtable fixes this? Write an api?

Ivan7707
4 - Data Explorer
4 - Data Explorer

When trying to build something out on airtable over the last few days, and I came across this issue.

I can accept the fact that staff in our company are killing any concept of normal form for a different way to organize data. I see the power in what airtable is.

This lacking cascading deletes is thoroughly surprising and as the OP noted, prone to serious misunderstanding and erroneous data.

EDIT: forgot to mention, why isn’t this an issue for more people (like everyone)? Am I missing something?

Simon_Horup_Es1
6 - Interface Innovator
6 - Interface Innovator

Could you filter your views by a rollup field to ensure a parent exists as a work-around?

Ivan7707
4 - Data Explorer
4 - Data Explorer

Hi Simon,

I am accessing the data via the API. Although, you gave me an idea that solved my immediate problem (not my long term issue). I found the filterByFormula parameter for the API, so I was able to use that to exclude the values that are not deleted.

Ivan

Carlos_Pita
5 - Automation Enthusiast
5 - Automation Enthusiast

Configuring a view of orphaned records and periodically delete them is not that hard.

Julian_Kirkness
10 - Mercury
10 - Mercury

@Carlos_Pita - indeed it isn’t - the point is that it shouldn’t be necessary. One should be able to specify cascade delete or prevent delete options when setting up the link.

Faculty_Schedul
6 - Interface Innovator
6 - Interface Innovator

Just wanted to bump this thread back up. It is now a few years later this feature still doesn’t exist, but does anyone have any creative solutions now that we have apps and automations?

Do you maybe define the table relationships somewhere and have an automation clean up the records?

Maybe create a delete record button field on the table that takes care of the cascade deletion of records for you?

It would be really cool if you could override the delete record functionality (or even the create and duplicate records too)

kuovonne
18 - Pluto
18 - Pluto

I have written scripts that perform a cascade delete. In almost every case the script needed to be customized to the base, as there was usually at least one (if not more) linked record field that needed to be omitted from the cascade.

I have also used an automation script that delete a record when the record becomes orphaned.

joeykay
4 - Data Explorer
4 - Data Explorer

It's about 8 years now since this functionality was requested. 😅 Any updates?