Deletion of templates