Added removal of all codes method