I have executed one batch class in sandbox but after that I want to delete the batch class execution details like ID and All.

  • What are you up to man?? :p – Mr.Frodo Jun 23 '18 at 12:16
  • 1
    This question is short, and lacking in detail. Please take some time to read through the topics in the help center, and specifically How to Ask. Where are you seeing these details? Why do you want to delete them? What research have you done so far, and what have you tried? – Derek F Jun 23 '18 at 15:32

All batch jobs that have completed execution are removed from the batch queue list seven days after completion.

There is a method by which you can delete jobs executed before today, but it will delete all jobs and not only a single entry.

Integer count = System.purgeOldAsyncJobs
System.debug('Deleted ' + 
   count + ' old jobs.');

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