function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to clear batch class debug logs at a time


I executed batch class and it is executed 60,000 records,batch size is 2 ,So 30,000 logs get created.I want to test it again.
Not able to clear the logs all becuase it is taking more time.
I deleted monitor user and again created user and even I opened the instace with other user in seperate browser still logs are showing.
Can any one suggest me how to delete these debug logs.

Thanks in advance,

SonamSonam (Salesforce Developers) 
There is no specific way to mass delete the debug logs, the system will start deleting the older ones once it reaches 50 MB logs.
Jean Grey 10Jean Grey 10
You can use DataLoader to export and delete debug logs - just use query SELECT Id FROM ApexLog