Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want rTorrent to delete a torrent's data when I remove it from the UI.

I've looked through the .rtorrent.rc documentation, and found the on_erase settings, but it is now depreciated. The replacement for it, system.method.set_key = event.download.erased is not very well documented.

What should I add to my .rotorrent.rc in order to make it delete files when I remove a torrent?

share|improve this question
up vote 2 down vote accepted
method.set_key = event.download.erased, remove_file,"execute={rm,-drf,--,$d.get_base_path=}"

for rtorrent 0.9.2

share|improve this answer
    
This did work, but after updating to Ubuntu 12.04 I now get "Event 'event.download.erased' failed: Bad return code." – digital Apr 4 '13 at 14:00
    
I use ArchLinux. Maybe the rtorrent version in Ubuntu 12.04 is not v0.9.2? – GutenYe Apr 7 '13 at 13:03
    
I compiled from scratch before the upgrade. rtorrent gui is reporting - rTorrent 0.9.2/0.13.2. Will scout around the issue queue – digital Apr 7 '13 at 19:36
    
it doesn't work anymore on 0.9.4 – user333985 Jun 17 '14 at 6:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .