Delete all (70.000) Error list entries

Hi,

We have got 70k errors in the log and it consumes all our space. I want to delete them all, but I can only select 500 a time. I do not want to click 140 times on see more. Can I select all entries at once and delete them?

Did you try this:
https://frappeframework.com/docs/user/en/api/database#frappe-db-truncate

As far as I know, your best option is either going to the database console and clear out the table manually, or automating the table clearance using the database API that Peer linked above.

GO to Log Settings Doctype

https://your_site/app/log-settings

and change the “Clear Log After days” value for Error log.
THen go to

https://your_site/app/scheduled-job-type/log_settings.run_log_clean_up

Click on execute on top right…

in few minutes only error log for days will remain which you have set in Log Settings

6 Likes

Thank you so much for you help. I found a button to delete all Error logs. But your proposal makes off course anyway sense. It is very useful. I could also define a timne to delete the trash!!

Isn’t there a clear error log feature?

Or is this only for V14+?

Thanks for the answer. This is what I meant when writing yesterday that I found the button to delete all error logs. This is indeed the easiest way. Nevertheless, the other settings that were mentioned are very helpful for general managing of data.

1 Like