Sorry for that.
You type $rTorrent instead of $modulename as in the guide for rm commands. Because $rTorrent attribute is not defined previously, is considered as empty and will delete the path before this attribute.

I've updated this guide with more detailed info for unexperienced users.

For everyone, keep in mind that running commands in SSH is for experienced users and on your own risk, as running some wrong command can delete all the files on your NAS.