Get rid of gadgets related to a code.