Delete excess codes