docstr: Deletes a chatbot by name
docstr_tok: ["Deletes","a","chatbot","by","name"]
code: def delete(self, project_name, chatbot_name):
      """Deletes a chatbot by name"""
      chatbot_controller = ChatBotController()
      try:
          existing_chatbot = chatbot_controller.get_chatbot(
              chatbot_name, project_name=project_name
          )
          if existing_chatbot is None:
              return http_error(
                  HTTPStatus.NOT_FOUND,
                  "Chatbot not found",
                  f"Chatbot with name {chatbot_name} does not exist",
              )
      except ValueError:
          # Project needs to exist.
          return http_error(
              HTTPStatus.NOT_FOUND,
              "Project not found",
              f"Project with name {project_name} does not exist",
          )
  
      chatbot_controller.delete_chatbot(
          chatbot_name, project_name=project_name
      )
      return "", HTTPStatus.NO_CONTENT
  
file_path: mindsdb/mindsdb/api/http/namespaces/chatbots.py
imports: from http import HTTPStatus
  from flask import request
  from flask_restx import Resource
  from mindsdb.api.http.namespaces.configs.projects import ns_conf
  from mindsdb.api.executor.controllers.session_controller import SessionController
  from mindsdb.api.http.utils import http_error
  from mindsdb.interfaces.agents.agents_controller import AgentsController
  from mindsdb.interfaces.chatbot.chatbot_controller import ChatBotController
  from mindsdb.interfaces.model.functions import PredictorRecordNotFound
  from mindsdb.interfaces.storage.db import Predictor
label_desc: Use image node_id 3 for calling the ChatBotResource obj's underlying member method code with example usage: obj.delete(project_name, chatbot_name) and returns: str,  HTTPStatus, http_error, http_error