Error while updating debug log trace flag

I am trying to update the debug log trace flag for my user but getting the following error

Having an active trace flag triggers debug logging. You have 259 MB of the maximum 250 MB of debug logs. Before you can edit trace flags, delete some debug logs.

I have removed all existing debug logs but it is still throwing the error.


I have faced this issue, which I fixed it by deleting all debugs logs from developer console.

  1. In dev console, Select tab “Query Editor” at the bottom of the console
  2. Select check box “Use Tooling API”
  3. Use this query:

    SELECT Id FROM ApexLog
  4. Delete all rows (Use shift key to select all rows)

Once all rows are deleted you will be able to save new debug logs.

Update : Salesforce has released a video tutorial for same.

Source : Link , Question Author : Madhurima , Answer Author : Pranay Jaiswal

Leave a Comment