I have an apex job scheduled by mistake and now I cannot able to delete that. Due to that, I cannot able to edit my existing apex class. I tried the steps from Salesforce.com artice and when I execute system.abortjob('jobid') from Apex execute in workbench, I am getting following error

COMPILE ERROR: Unexpected token '('. LINE: 1 COLUMN: 16

Can anyone suggest is there any other approach so that I can abort the queued job

2 Answers 2


You have forgotten the ; in the code on the end of the line. If you change your code to this, it will work:


I think you have some mistakes in your abort code, but i think you can delete your scheduler job in setup->Scheduled Jobs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.