Check existed a script and remove it

I want create a create script and check existed other scripts and remove. Pls help me.

Not sure if this is what you need… How about:

/ system script remove [ find where name!="not-this-one" ]