function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
debprakash shawdebprakash shaw 

Delete record using batch class

How to delete more than 50k records using batch class
an object like Account link with contact, and contact link with product, and product link with order
All the objects have more than 50k record
How to write the batch class for that scenario
thanks in advance
AnkaiahAnkaiah (Salesforce Developers) 
Hi debprakash,

Which object records you want to delete?

Thanks!!
debprakash shawdebprakash shaw
All object 
 
debprakash shawdebprakash shaw
Account, Contact, Product, and Order