Help! Need a way to delete folders that match my criteria…

I'm trying to find a way to automatically delete folders that haven't got any files of a specific extension in it (no .r*, .rar, .avi, .mkv and .m4v files), but I can't seem to figure out how to do this with Hazel.
Anybody here that can help me out?
Anybody here that can help me out?