You need to sign in to do that
Don't have an account?
SimplySfdc
delete All records in an object
Hi, is there any easy ways to delete ALL records in an object with a single call rather than 200 records in batch.
sq
sq
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Thank you for the reply. Currently we have to do delete all records in a standard object. Total would be around 350K of records and it takes more than 2 until 3 hours. I have did bulk delete by 200. Do you have any ideas to make this process faster. Thanks.
sq
It should not take 2 to 3 hours to delete 350k of records. Check the follow to see if you missed any steps.
I can usually delete that many records in about 45 minutes give or take network bandwidth. Number 1 above is the biggest issue I see with peoples code. They have way to much going on during the delete loop.
JonD
360 Vantage
3115 S. Price Road
Chandler, AZ 85248
This C# code takes and ArrayList of sObject IDs (strings) and deletes them in bulk.
Code: