created delete action for templates