Delete all Scheduled jobs from salesforce

 Sometimes we need to delete schedule batch jobs not to run in future. if we have limited jobs then we can delete those manually. if you have more scheduled jobs it's good to delete from developer console using the following command. 

Delete scheduled jobs manually in salesforce

  • After login to salesforce org , Navigate to Setup --> Search "Scheduled jobs" in the quick find box
  • then click on Scheduled jobs link, here you can see all scheduled batch jobs
  •  Then, you can delete each jobs using the Del link beside each job.

Delete scheduled batch jobs using command

for(CronTrigger CT: [Select Id from CronTrigger Limit 100]){
  System.abortjob(CT.Id);
}
Labels:
Join the conversation