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
AbanteAbante 

auto delete everyday

Hello everyone,

 

 

I'ld like to delete everyday all records from a custom object. I didn't schedule an Apex job before so I don't know what do first. It should be a really simple piece of code.

 

 

Any idea?

 

Thanks in advance

ShaTShaT

Hi,

 

Goto setup--> devlop --> Classes --> Schedule Apex Button.

 

You can select your class and give the time and days.

 

Thanks

Shailu

AmitSahuAmitSahu

Without implementing the batch apex code how can you schedule a class ?

 

You will have to create a batchable class and then you can schedule the class.

 

For more info please search for batch apex in the apex guide and you will get sample code as well