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
erikdozsaerikdozsa 

Fastest way to delete 1.5 million records from a custom object?

Hello all,

 

I would like to delete about 1.5 million records from a custom object. Which is the fastest way to do this?

 

Thank you,

souvik9086souvik9086

You can use data loader to delete those.

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

Avidev9Avidev9
The fastest way will be using TRUNCATE on the object. It will delete all your data in that object.
Have a look here https://help.salesforce.com/HTViewHelpDoc?id=dev_object_trunc_overview.htm&language=en_US#TruncatingObjectsOverview