How to delete old build log?

Hi,

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? https://docs.drone.io/administration/server/database/#s3-storage

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.

2 Likes

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

Thank you.


I wrote this SQL. It works pretty well.

2 Likes

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

Sure.

1 Like