Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 = 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 =, 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 '' 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

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.