spike someone's guns

Etymology
From the wartime practice of welding a metal spike into the touch hole of a cannon (generally done to enemy guns by raiders, or to one's own guns if forced to abandon them in a retreat), making the cannon impossible to fire.

Verb

 * 1) To frustrate a person's efforts or designs; to undercut, to render helpless.