Page 1 of 1

how to remove all torrents using console?

Posted: Thu Aug 01, 2013 8:43 am
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...)?

Re: how to remove all torrents using console?

Posted: Thu Nov 15, 2018 10:34 pm
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`