Skip to main content

Automatically remove torrents according to your strategies.

Project description

PyPI TravisCI Coverage Codacy MIT

This program can help you to remove your torrents. Now you don’t need to worry about your disk space - according to your strategies, for each category and tracker, the program will check each torrent if it satisfies the remove condition; If so, delete it automatically.

This program supports qBittorrent/Transmission/渭Torrent. If you like, star it :sparkles: :)


  • Python 3

That’s all. It’s a simple but smart program.

Quick Start


Install from pip

pip install autoremove-torrents


Install from GitHub

git clone
cd autoremove-torrents
python3 install

Write your configuration file

In order to satisfactory your needs, you have to learn how to write a configuration file.

You can put the configuration file anywhere on your disk. The autoremove-torrents looks for config.yml in the Shell’s current working directory.:

vim ./config.yml

The grammar is quite easy, for example:

  client: qbittorrent
  username: admin
  password: adminadmin
        - IPT
      seeding_time: 1209600
      ratio: 1
  delete_data: true

The program will delete those torrents whose categories are IPT, seeding time is above 1209600 seconds or ratio is greater than 1. Visit Wiki to learn more.



If you just want to see which torrents can be removed but don’t want to really remove them, use –view command line argument.

Setting up scheduled tasks

If you want to check whether there is any torrent can be removed every 15 minutes, the crontab can help you. Look at the example:

crontab -e

And then, add a line at the end of the file (please confirm the path of the autoremove-torrents and your program):

*/15 * * * * /usr/bin/autoremove-torrents --conf=/home/jerrymakesjelly/autoremove-torrents/config.yml

The conf= indicates the path to the configuration file.


Sat, 26 May 2018: Fixed issue in

Sat, 26 May 2018: Version 1.2.0. Refactoring was completed, and was published to PyPI.

  • New features will be added soon.

  • Now we can install it via pip.

Mon, 14 May 2018: Version 1.1.0. Created

You can now use the autoremove-torrents command directly instead of python3

Wed, 28 Mar 2018: (Correct document) The delete_data field shouldn’t be indented.

Thu, 22 Mar 2018: First version :bowtie:


Depend on users’ feedback.

  • Support Deluge and rtorrent in the future

  • Add remove condition: Disk free space

  • Add remove condition: Max/Min average UL/DL speed

If you have any problem, please submit Issues.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoremove-torrents-1.2.1.tar.gz (10.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page