{"id":1,"date":"2020-02-06T19:46:03","date_gmt":"2020-02-06T19:46:03","guid":{"rendered":"https:\/\/practicsolutions.com\/blog\/?p=1"},"modified":"2022-05-29T12:44:55","modified_gmt":"2022-05-29T12:44:55","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/practicsolutions.com\/blog\/?p=1","title":{"rendered":"Bulk delete Debug logs from your organization"},"content":{"rendered":"\n<p>Have you ever had issue where your developer console is full of debug logs, and you are unable to view new ones?<br><br>There is a way how to delete them in bulk.<\/p>\n\n\n\n<p><code>sfdx force:data:soql:query -t -q \"SELECT Id FROM ApexLog\" -r \"csv\" > out.csv -u DEVORG<\/code><\/p>\n\n\n\n<p><code>sfdx force:data:bulk:delete -s ApexLog -f out.csv -u DEVORG<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The first line will export logs from DB, and the second one will schedule the bulk job for deletion.<br>This way you will delete all the debug logs from the ORG and do the cleanup.<br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever had issue where your developer console is full of debug logs, and you are unable to view new ones? There is a way how to delete them in bulk. sfdx force:data:soql:query -t -q &#8220;SELECT Id FROM ApexLog&#8221; -r &#8220;csv&#8221; > out.csv -u DEVORG sfdx force:data:bulk:delete -s ApexLog -f out.csv -u DEVORG The &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/practicsolutions.com\/blog\/?p=1\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bulk delete Debug logs from your organization&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":2,"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":44,"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions\/44"}],"wp:attachment":[{"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/practicsolutions.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}