A System Administrator is managing a custom object named Project_Task__c that has a Master-Detail relationship with a parent custom object named Project__c. What happens to the associated child Project_Task__c records when a parent Project__c record is deleted?
- The associated Project_Task__c records are automatically deleted and moved to the Recycle Bin.Answer
- BThe associated Project_Task__c records remain active and their Master-Detail relationship field is cleared.
- CThe deletion of the parent Project__c record is blocked until all associated Project_Task__c records are manually deleted.
- DThe associated Project_Task__c records are automatically archived and converted into standard Task activity records.
Answer
The associated child records are automatically deleted and moved to the Recycle Bin along with the master record.
In Salesforce, Master-Detail relationships strictly enforce cascade deletion. When a parent master record is deleted, all of its associated child detail records are automatically deleted and moved to the Recycle Bin.
Step-by-Step Solution
Key Concept
Master-Detail Relationship Cascade Deletion