Deleteing of templates