A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [cascadedelete]

A cascade delete is the scenario in which child records of a deleted record are also automatically removed from the system as part of the original, single action of deleting the parent.

Filter by
Sorted by
Tagged with
6
votes
1answer
2k views

Cascade delete limits?

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 ...
3
votes
1answer
1k views

Prevent related record deletion, except when parent record is being deleted

I have two custom objects, call them Parent and Child. Child has a Lookup to Parent, via Parent__c. It is not a Master:Detail relation. What pattern could I use to prevent deletion of a Child record ...
0
votes
1answer
373 views

Governor limits involving cascaded deletes?

I'm writing a job to bulk delete records from my database. I've already seen this question: Cascade delete limits? But it does tell me how the deletion limits are affected. The object whose records ...