Is it possible to "rolling delete" drone runs?

I have a VPS with ridiculously low storage (20GB), and just the drone logs is starting to fill it up after several runs.

Is it possible to delete the run logs in a rolling way automatically so that only the recent 10 runs are kept?

Also, is the disk space used within a run automatically freed after it ends?

1 Like

Here are some relevant threads that might help:
https://drone.discourse.group/t/how-to-delete-old-build-log/11089
https://drone.discourse.group/t/drone-database-periodical-maintenance/9633/2