When i try to create debug log i am getting below error. Even i have deleted all user trace flags and checked in dev console also by querying user trace flags.

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

2 Answers 2


You have hit the limit of maximum size of debug log. You need to delete them to get some space.

You can also run this query to get them in bulk and delete them

Use the following query in the Developer Console to access the TraceFlag object:

SELECT Id, CreatedDate, CreatedById, ExpirationDate, TracedEntityId, ApexCode, ApexProfiling,  Callout, Database, System, Validation, Visualforce, Workflow FROM TraceFlag

Be sure to select the 'Use Tooling API' checkbox before executing the query

Bulk delete trace flags through Developer Console

  • 2
    Thanks Tushar. it worked ..Also by deleting apexlogs. May 14, 2018 at 10:10
  • @VinothiniMurugesh Then you can accept this answer and close the question. May 14, 2018 at 10:14
  • 1
    This is not trace flags issue. You'll just need to delete logs, in dev console execute: SELECT Id FROM ApexLog, then delete all rows (Use shift key to select all rows). help.salesforce.com/articleView?id=000194045&type=1
    – Marcin Sz.
    Mar 12, 2019 at 14:48

You can define Log Level as info which are not needed to trace, like this

Log Level

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .