0

Can you please tell me how to delete records in Salesforce using Bulk API? The process of deletion itself is known to me. I am interested in how I understand which dependencies should be removed. Follow the chain from bottom to top and delete only cascadeDelete true? Should I somehow pay attention to Restricted delete?

1 Answer 1

-1
  1. For bulk deleting records, please refer this link : Hard Delete with Bulk API

  2. For deleting records, which are in relationship with other record(s), please refer this wonderful article

Going from bottom to top is normally considered as the safest approach, however, you may want to consider the limits in doing it explicitly. If the relationship involved is Master-Detail, cascade delete will internally take care of dependencies. So, the choice depends on the actual business scenario, sometimes.

1
  • Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – identigral
    Commented May 3, 2023 at 22:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .