The Delete method deletes a graphic.
Copy and paste the first two lines to the IDL command line to draw the plot and the text annotation. Then paste the last line separately to see how it deletes the annotation.
plot = PLOT(/TEST)
t1 = text(0.5, 0.8, 'Text 1')