delete register code