Improve error on attempt to delete missing template
Add command-line script to delete a template