Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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? –  Guten 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 –  flagg Jun 17 at 6:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.