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

> Deletes a website crawl and all associated data from the knowledge base by its unique ID.  **Cleanup:** Removes all crawled pages, associated embeddings, and any agent references to this website.

# Delete Website

For the complete error reference, see [Error Guide](/rest-api/ai-agents-apis/error-codes).


## OpenAPI

````yaml delete /ai-agents/agent-builder/knowledge-base/website/{uniqueId}
openapi: 3.0.0
info:
  title: AI Agents APIs
  description: API reference for CometChat AI Agents service
  version: '1.0'
servers:
  - url: https://{appId}.api-{region}.cometchat.io/v3
    variables:
      appId:
        default: appId
        description: (Required) App ID
      region:
        enum:
          - us
          - eu
          - in
        default: us
        description: Select Region
security: []
tags:
  - name: ai-agent
    description: ''
paths:
  /ai-agents/agent-builder/knowledge-base/website/{uniqueId}:
    delete:
      tags:
        - knowledge-base
      summary: Delete Website
      description: >-
        Deletes a website crawl and all associated data from the knowledge base
        by its unique ID.


        **Cleanup:** Removes all crawled pages, associated embeddings, and any
        agent references to this website.
      operationId: CrawlWebPagesController_deleteWebsite
      parameters:
        - name: uniqueId
          required: true
          in: path
          description: Unique website crawl ID to delete
          schema:
            type: string
      responses:
        '200':
          description: Website and all associated data deleted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Website and all associated data deleted successfully
                  data:
                    type: object
                    properties:
                      uniqueId:
                        type: string
                      deletedFromAgents:
                        type: boolean
                      vectorsDeleted:
                        type: boolean
              example:
                success: true
                message: File and all associated data deleted successfully
                data:
                  uniqueId: website-uuid-123
                  deletedFromAgents: true
                  vectorsDeleted: true
                  s3FileDeleted: true
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key (i.e. Rest API Key from the Dashboard).
      name: apikey
      in: header

````