how to remove all torrents using console?

General support for problems installing or using Deluge
Post Reply
Maximus
New User
New User
Posts: 3
Joined: Wed Jul 31, 2013 2:41 am

how to remove all torrents using console?

Post by Maximus »

hi all,

I'm coming again with two of my questions unanswered...

This time I want to know how to remove all torrents using a console? Can I use something like deluge-console "rm *"(it does not work...)?
aetherwalker
New User
New User
Posts: 1
Joined: Thu Nov 15, 2018 10:32 pm

Re: how to remove all torrents using console?

Post by aetherwalker »

For anyone stumbling across this page, this worked for me in ubuntu;

Code: Select all

for id in `deluge-console "info" | grep "^ID: " | sed -En "s/ID: //p"`; do deluge-console "rm $id"; done
A quick and dirty way of leveraging the https://whatbox.ca/wiki/Deluge_Console_ ... Automation part and `sed`
Post Reply