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
VSK98VSK98 

Is it possible to delete the schedule record in schedule object after scheuled

Hi,

Is it possible to delete the schedule record in schedule object after scheuled. Please Share the sample code 

Adv Thnx
Siv
Abhishek BansalAbhishek Bansal

Hi,

Yes it is possible to delete schedule job in salesforce and this can be achieved by following the below steps :

  1. Go to Setup
  2. Than go to Jobs
  3. Than go to Schedule Jobs
  4. Than Select the Job that you want to delete
  5. Click on Delete button


Your schedule job will be deleted.

Please let me know if your question was about something else or if you want more information for the same.

Thanks,
Abhishek Bansal.

povery.sf@gmail.compovery.sf@gmail.com

scheduledMerge m = new scheduledMerge();
String sch = '20 30 8 10 2 ?';
String jobID = system.schedule('Merge Job', sch, m);

system.abortJob(jobID);
VSK98VSK98
Hi Abhi,

I don't want to delete manually............i need to delete those schedule record after scheduled by automatically