Template management

Delete template function.