How to delete old build log?


How can i delete old build log?
My drone sqlite database is bigger and bigger day by day and machine disk became almost full…

Thank for your helping.

Have you considered using S3 or an S3 compatible storage system to store your logs?

Alternatively you can create a shell script / SQL statement to delete old logs and you can schedule this script using your host machine’s cron scheduer. You would be responsible for creating the shell script / SQL statement.


Ok, I will try deleting old log by writing my shell script.

Thank you.

I wrote this SQL. It works pretty well.


@msglight4874 Any chance you’d put your GitHub gist back? :slight_smile:


1 Like