How to delete old action logs

Hi there, I’ve been enabling the logging level at debug
and my DB is getting bigger and bigger

how can I reduce the DB size?
I think I need to execute some kind of SQL query … right?