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 I'm deleting are A__c. Actually, through master-detail, A__c has a child object B__c.
I know that, for records without any children, the governor limits for deleting records are 10,000 (I believe, please correct me if I am wrong). Does this 10,000 limit take into account cascaded deletions?
For example, say I have 5000 A__c records, and each A__c record has 1 B__c record as its child. I've also set the relationship such that cascaded deletion occurs. Thus, on deleting 5000 A__c records, the 5000 associated B__c records will also be removed. Does this mean I have hit the governor limit because I deleted 10,000 records in total? Or am I still good for more?
Now, let's say B__c has a child C__c, and C__c has a child D__c. How does the situation change?