You need to sign in to do that
Don't have an account?
West415
Mass Delete Scheduled Jobs?
Hi,
I have about 800+ scheduled jobs in my org and I want to mass delete them. How can I do this either through the UI ideally in bulk or via code? Any help appreciated. I know I can click the delete link next to each job, but I don't want to do that because it will takes a LONG time obviously.
Thanks!
The above will delete all the scheduled jobs in your org, I strongly recommend you to test in sandbox for few jobs and then try in the production instances, you can also filter with the fields in the query. Check here for corn trigger fields (http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_crontrigger.htm)
All Answers
The above will delete all the scheduled jobs in your org, I strongly recommend you to test in sandbox for few jobs and then try in the production instances, you can also filter with the fields in the query. Check here for corn trigger fields (http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_crontrigger.htm)
Nick,
Considering the above code, the way to do that would be to call
where "IDOFJOB" is the salesforce id of that shceduled batch job.