trans-autoclean – Auto Remove Completed Torrents from Transmission

Filed in Software Developement Leave a comment

Do you have an awesome set & forget server setup that automatically grabs torrents for you in the background? Do you use transmission-daemon to accomplish this? Have you ever wondered why there’s no way to automatically remove completed torrents? I sure have.

I started using FlexGet about a year ago, I even wrote my own plugin to handle magnet links back when I was still using rtorrent. I left rtorrent because transmission has really matured and is much easier to work with (RPC-wise). The problem I kept facing is that every now and then I would check on the web interface and found a large number of completed torrents just sitting there. This became a semi-regular task, log into the web interface, clear the completed torrents. Today I decided that this is a very simple problem to solve so I’ll just kill an hour and make this work. Turns out it only took about 15 minutes, but I spent the other 45 creating a github account, project, and writing this entry.

Anyways, here is the project:

This script is perfect for those who have a couch potato like setup. Hopefully some of you find it useful.