Post Voting, auto-delete posts with more than X downvotes

I'm currently trying to figure out a way to automatically delete a post that receives a certain number (let´s say 10) of downvotes.
I imagine this feature could be quite useful for lots of other users as well.