Activity › Forums › Salesforce® Discussions › How can we delete debug logs through the batch in Salesforce? Salesforce® Discussions How can we delete debug logs through the batch in Salesforce? Posted by Pooja on August 6, 2020 at 7:40 PM How can we delete debug logs through the batch in Salesforce? Pravina replied 5 years, 9 months ago 2 Members · 1 Reply 1 Reply Pravina Member August 7, 2020 at 12:04 AM Hi Pooja, We can’t perform DML operation on Apexlog object. batch will through an error you cant perform DML operation on ApexLog. Thanks! Pravina Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me