You need to sign in to do that
Don't have an account?

Massive delete
Hello everyone,
Is there any simple way to schedule a massive delete of a custom object?
I want to insert new records everyday, but I want to save time and schedule a massive delete during the night
Thanks in advance
Take a look at Batch Apex and Scheduleable Apex. You can create Apex Jobs that do mass deletions according to your schedule.
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_batch_interface.htm|StartTopic=Content%2Fapex_batch_interface.htm|SkinName=webhelp
Hi,
You could develop an Apex batch script to be scheduled everynight. The batch script will first select records that meet your criteria, and then delete them.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm
Naveen