This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Salesforce

How to Delete All Debug Logs in Salesforce

Updated on:
May 25, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to clear all debug logs from your Salesforce org using the Developer Console.

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

  1. Click the gear icon at the top right of the Salesforce dashboard to open the setup menu.
  2. Select Developer Console from the dropdown menu.
  3. Click Query Editor in the Developer Console interface.
  4. In the Editor box, type SELECT Id FROM ApexLog LIMIT 1000 to retrieve the latest Apex debug logs.
  5. Click Execute in the bottom left corner to run the query.
  6. Select all retrieved log records returned in the results panel.
  7. Click Delete Row to initiate deletion of the selected logs.
  8. Select Yes to confirm and permanently delete the debug logs.

📌 Why this matters

Accumulated debug logs in Salesforce can eat up storage limits and slow down org performance. Knowing how to bulk-delete ApexLog records via the Developer Console is an essential admin skill that keeps your Salesforce environment clean and responsive. This process requires no third-party tools — just a simple SOQL query and a few clicks to wipe hundreds of logs at once. Mastering this task helps Salesforce developers and admins maintain efficient orgs and avoid hitting storage thresholds.
Your product deserves an interactive demo
Start free
Similar Articles
Salesforce

How to Use Salesforce Inspector Reloaded

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Share Dashboards in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Send Mass Emails in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it