Friday, 14 October 2016

How to Delete all scheduled Jobs in one go


To delete All the scheduled jobs in one Go, need to follow few steps.

Step 1: Login to your org.

Step 2: Open Developer Console.

Step 3: Copy and Paste the below code.

Step 4: Execute the code.


Code:

List<CronTrigger> cronstodelete = [Select Id from CronTrigger Limit 100];
for(CronTrigger CT: cronstodelete){
    System.abortjob(CT.Id);      
}

No comments:

Post a Comment