defeat the purpose

Verb

 * 1) To undermine the act of doing something by having an opposite effect; to nullify.