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
Amit Karlekar 4Amit Karlekar 4 

How To Abort Specific Scheduled Apex Job?

Is there any way to delete or abort the specific queued scheduled apex job?

The following code aborts all the scheduled apex jobs, but, I want to abort the specific one.

List<CronTrigger> JOBIDLIST = new List<CronTrigger>();
JOBIDLIST = [select id from CronTrigger];
for(CronTrigger job:JOBIDLIST )
{
   System.abortJob(job.id);
}
AshwiniAshwini (Salesforce Developers) 
Hi Amit,
Please refer below similar stackexchange link which might be useful for your scenario:
https://salesforce.stackexchange.com/questions/121630/abort-currently-running-job-in-salesforce 

If this information helps, please mark the answer as best. Thank you