You need to sign in to do that
Don't have an account?
Amit 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); }
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