How to delete print(text) when new print(text) shows up later in code?

For instance here is an example.

Print(“welcome, to get started choose a shape”);

Ball.on(click, ___)
=> {
Print(“you chose the ball instead of the square!”);

I want to delete the first text upon clicking the ball and causing new text.

On another note, I was super super super surprised at how much I remembered of the format of the code without having to look XD