Script to clear traces on the scope

i’ve just cheked, it happens if i run again the script without closing the octave windows, in this case previous traces are not cleared if i close the octave windiws and i run agai the script, previost trace are cleared