code: def generate_delete_view(self):
          
  
          name = model_class_form(self.model + 'DeleteView')
          delete_args = dict(
              model=self.get_model_class,
              template_name=self.get_template('delete'),
              permissions=self.view_permission('delete'),
              permission_required=self.check_permission_required,
              login_required=self.check_login_required,
              success_url=reverse_lazy('{}-{}-list'.format(self.app, self.custom_postfix_url)),
              custom_postfix_url=self.custom_postfix_url
          )
  
          delete_class = type(name, (CrudBuilderMixin, DeleteView), delete_args)
          self.classes[name] = delete_class
          return delete_class
docs: Generate class based view for DeleteView