Good afternoon, how can I clean the code in the situation where, I put the buttons according to a certain use, then we resolve to take the buttons but the codes are there, (click events) How can I remove the button and remove events and references without undoing the program?