Activity › Forums › Salesforce® Discussions › How to use System.abort in Batch Class in Salesforce? Salesforce® Discussions How to use System.abort in Batch Class in Salesforce? Posted by Deepak on June 9, 2020 at 4:26 PM How to use System.abort in Batch Class in Salesforce? Marziya replied 5 years, 11 months ago 3 Members · 2 Replies 2 Replies Anjali Member June 10, 2020 at 2:23 PM Please refer the following link- https://salesforce.stackexchange.com/questions/121630/abort-currently-running-job-in-salesforce [adinserter block='9'] Marziya Member June 10, 2020 at 2:32 PM [ SELECT ID FROM CRONTRIGGER]; Then you need to abort each job using System. abortJob(<jobId>); function. So using the above script you can abort the scheduled job in Salesforce using Apex. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me