Batch-extractor is a project mainly written in Python, it's free.
A python script that goes through a directory recursively and unrars all the files inside it, then deletes all the files NOT resulted from the decompression inside that folder. (use at your own risk)