Quick summary
This demo shows how to delete all debug logs in Salesforce using the Developer Console and a SOQL query via the Query Editor. Admins and developers can bulk-remove ApexLog records in just a few clicks, keeping their org clean and storage optimized.
Steps
- Click the gear icon at the top right of the Salesforce dashboard to open the setup menu.
- Select Developer Console from the dropdown menu.
- Click Query Editor in the Developer Console interface.
- In the Editor box, type SELECT Id FROM ApexLog LIMIT 1000 to retrieve the latest Apex debug logs.
- Click Execute in the bottom left corner to run the query.
- Select all retrieved log records returned in the results panel.
- Click Delete Row to initiate deletion of the selected logs.
- Select Yes to confirm and permanently delete the debug logs.
