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...)?
how to remove all torrents using console?
-
- New User
- Posts: 1
- Joined: Thu Nov 15, 2018 10:32 pm
Re: how to remove all torrents using console?
For anyone stumbling across this page, this worked for me in ubuntu;
A quick and dirty way of leveraging the https://whatbox.ca/wiki/Deluge_Console_ ... Automation part and `sed`
Code: Select all
for id in `deluge-console "info" | grep "^ID: " | sed -En "s/ID: //p"`; do deluge-console "rm $id"; done