Friday 24 March 2023

Javascript for delete apex logs

Go to Setup->Debug log. Now press Ctrl+Shift+I to open browser inspector. Now click on console and paste following code in this window; and now wait and watch till all debug logs get deleted.

setInterval(
function() {
   if (document.querySelector('span[id*="deleteAllStatus.start"]').style.display === 'none') {document.querySelector('input[value="Delete All"]').click()}
}
,250);

No comments:

Post a Comment