Delete button after use

can someone please tell me how to remove a button after the user presses it? is there a line of code i just need to put in for it with an on(release) function?
thanks :slight_smile: