> ## Documentation Index
> Fetch the complete documentation index at: https://docs.okchat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Knowledge Base Data

> Delete Knowledge Base Data



## OpenAPI

````yaml api-reference/openapi-spec.json delete /api/external/chatbot/{chatbotId}/knowledge-base
openapi: 3.0.3
info:
  title: OKCHAT2.0
  version: 1.0.0
  contact: {}
servers:
  - url: https://v2.okchat.ai
  - url: http://localhost
security: []
tags: []
paths:
  /api/external/chatbot/{chatbotId}/knowledge-base:
    parameters:
      - name: chatbotId
        in: path
        required: true
        schema:
          type: string
          example: ''
    delete:
      summary: Delete Knowledge Base Data
      description: Delete Knowledge Base Data
      operationId: deleteKnowledgeBaseData
      parameters:
        - name: id
          in: query
          schema:
            type: string
            example: 2043a479-0cca-4495-97cc-c4b490138f3d
        - name: x-api-key
          in: header
          schema:
            type: string
            example: 4358d60b39ef0df47f421c0d58331407ec609abb6355dfa4
      responses:
        '200':
          description: Example
          headers:
            Connection:
              schema:
                type: string
                example: keep-alive
            Date:
              schema:
                type: string
                example: Mon, 02 Dec 2024 06:36:52 GMT
            Keep-Alive:
              schema:
                type: string
                example: timeout=5
            Transfer-Encoding:
              schema:
                type: string
                example: chunked
          content:
            application/json:
              schema:
                type: object
                properties:
                  chatbot:
                    type: object
                    properties:
                      active:
                        type: boolean
                        example: true
                      created_at:
                        type: string
                        example: '2024-11-08T09:25:54.141252+00:00'
                      description:
                        type: string
                        example: Demo AI Chatbot
                      id:
                        type: string
                        example: 5afe16ed-5fd2-4552-a993-903bc9c32bb6
                      is_public:
                        type: boolean
                        example: true
                      name:
                        type: string
                        example: Test
                      openai_api_key:
                        nullable: true
                        example: null
                      organization_id:
                        type: string
                        example: 123042b2-86e2-4184-a86e-95423d728815
                      personality_config:
                        type: object
                        properties:
                          style:
                            type: string
                            example: Test
                          tone:
                            type: string
                            example: Test
                      settings:
                        type: object
                        properties:
                          avatar:
                            type: string
                            example: >-
                              https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/chatbot/5afe16ed-5fd2-4552-a993-903bc9c32bb6/0aabc2ff-6aab-491b-8858-0d001acc167d.png
                          greeting:
                            type: string
                            example: Hello! How can I assist you today?
                          isRequestUserInfoEnabled:
                            type: boolean
                            example: false
                          isToolEnabled:
                            type: boolean
                            example: true
                          model:
                            type: string
                            example: gpt-4o
                          prompt:
                            type: string
                            example: >-
                              You are a helpful and friendly customer support
                              agent.  Respond to user inquiries in a clear and
                              concise manner.  Always strive to provide accurate
                              and helpful information.
                          snippet:
                            type: object
                            properties:
                              header:
                                type: string
                                example: 오케이챗 고객응대 챗봇
                              logo:
                                type: string
                                example: >-
                                  https://dasomx.odoo.com/web/image/website/1/logo/DASOMX?unique=1aee356
                              name:
                                type: string
                                example: Test
                              primaryColor:
                                type: string
                                example: '#9c2caa'
                              secondaryColor:
                                type: string
                                example: '#60d7a9'
                              slogan:
                                type: string
                                example: Chat with us
                      slug:
                        type: string
                        example: test-1
                      updated_at:
                        type: string
                        example: '2024-12-01T14:38:45.709025+00:00'
              examples:
                Example:
                  value:
                    chatbot:
                      active: true
                      created_at: '2024-11-08T09:25:54.141252+00:00'
                      description: Demo AI Chatbot
                      id: 5afe16ed-5fd2-4552-a993-903bc9c32bb6
                      is_public: true
                      name: Test
                      openai_api_key: null
                      organization_id: 123042b2-86e2-4184-a86e-95423d728815
                      personality_config:
                        style: Test
                        tone: Test
                      settings:
                        avatar: >-
                          https://alwiuiydhxcstgrluarg.supabase.co/storage/v1/object/public/chatbot/5afe16ed-5fd2-4552-a993-903bc9c32bb6/0aabc2ff-6aab-491b-8858-0d001acc167d.png
                        greeting: Hello! How can I assist you today?
                        isRequestUserInfoEnabled: false
                        isToolEnabled: true
                        model: gpt-4o
                        prompt: >-
                          You are a helpful and friendly customer support
                          agent.  Respond to user inquiries in a clear and
                          concise manner.  Always strive to provide accurate and
                          helpful information.
                        snippet:
                          header: 오케이챗 고객응대 챗봇
                          logo: >-
                            https://dasomx.odoo.com/web/image/website/1/logo/DASOMX?unique=1aee356
                          name: Test
                          primaryColor: '#9c2caa'
                          secondaryColor: '#60d7a9'
                          slogan: Chat with us
                      slug: test-1
                      updated_at: '2024-12-01T14:38:45.709025+00:00'

````