added ability to clear codes in bulk