---
title: "Quickly delete Debug Logs"
url: "https://blog.beyondthecloud.dev/tips/quickly-delete-debug-logs"
category: "Tooling"
tags: "apex, sfdx, debugging"
published: "2024-01-02"
---

# Quickly delete Debug Logs

Have you ever encountered an issue with the debug log limit? You've probably seen the message at least once: '...Before you can edit trace flags, delete some debug logs.'

### Quickly delete Debug Logs

Have you ever encountered an issue with the debug log limit? You've probably seen the message at least once: '...Before you can edit trace flags, delete some debug logs.'

You can easily delete all logs with a small plugin: osiecki-sfdx- plugins (link to the repository in the comment)

All you need to do is install the plugin using the command:

```bash
sfdx plugins:install osiecki-sfdx-plugins
```

Now, you can use the command

```bash
sfdx oa:apex:log:delete -a
```

And it’s done! More information about the parameters could be found in repository in Readme file.
