How to delete a script?

I created a script in scripts.yaml, then deleted it from the file, but the script still appears in the HA web console (albeit empty). How can I remove it from HA completely?

After deleting it manually from the .yaml file did you restart?