Remove extra file formats

I use Dropbox to make ebooks available for my ereader. When I save the book from Calibre it will save multiple formats if they exist, so I might end up with book1.pdf and book1.mobi and book1.epub.
I'd like Hazel to clean up all the unneeded formats such that: If there's an epub, just keep that. If there's a mobi and pdf just keep the mobi. Only keep the pdf if it's the only format.
Can Hazel do this?
Can you point me at an example?
I'd like Hazel to clean up all the unneeded formats such that: If there's an epub, just keep that. If there's a mobi and pdf just keep the mobi. Only keep the pdf if it's the only format.
Can Hazel do this?
Can you point me at an example?