Delete error logs in bulk

If I want to delete all error logs in bulk (10000+) using the command line, how can I do?
Does it exist a function in bench?

Go to the error logs list view, then Menu → Clear Logs


is there a way to clear all logs for custom frappe apps?