Cascade delete limits?

All we need is an easy explanation of the problem, so here it is.

Is there a limit to the number of records that can be deleted in cascading delete?

We are receiving an error “Deletion Unsuccessful You cannot delete this object” when trying to delete records involved in master detail and lookup cascade delete relationships.

It is my understanding their are limits on delete() functions in Apex, but is there delete limits in the declarative delete functionality?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

From Considerations for Relationships in the Salesforce Help:

In a many-to-many relationship, a user can’t delete a parent record if
there are more than 200 junction object records associated with it and
if the junction object has a roll-up summary field that rolls up to
the other parent. To delete this object, manually delete junction
object records until the count is fewer than 200.

It may be that the records you’re deleting are falling under this limitation.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply