docstr: Deletes a view by name
docstr_tok: ["Deletes","a","view","by","name"]
code: def delete(self, project_name, view_name):
      """Deletes a view by name"""
      session = SessionController()
      try:
          project = session.database_controller.get_project(
              project_name
          )
      except NoResultFound:
          abort(
              HTTPStatus.NOT_FOUND,
              f"Project name {project_name} does not exist",
          )
  
      if project.get_view(view_name) is None:
          abort(
              HTTPStatus.NOT_FOUND,
              f"View with name {view_name} does not exist",
          )
  
      project.delete_view(view_name)
      return "", HTTPStatus.NO_CONTENT
  
file_path: mindsdb/mindsdb/api/http/namespaces/views.py
imports: from http import HTTPStatus
  from flask import request
  from flask_restx import Resource, abort
  from sqlalchemy.exc import NoResultFound
  from mindsdb.api.http.namespaces.configs.projects import ns_conf
  from mindsdb.api.executor.controllers.session_controller import SessionController
label_desc: Use image node_id 3 for calling the ViewResource obj's underlying member method code with example usage: obj.delete(project_name, view_name) and returns: str,  HTTPStatus