Use DeleteView instead of TemplateView.