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

# Delete a Web Archive destination

> Delete a Web Archive delivery destination with DELETE /webarchive/destinations/{id}. Files already delivered stay in your bucket.

`DELETE /webarchive/destinations/{id}` deletes a destination. Deleting a destination doesn't remove any files from your bucket.

> [!NOTE]
>
> The delete returns `409 destination_in_use` while a snapshot delivery that is not finished, failed or canceled still uses the destination.


## OpenAPI

````yaml api-reference/web-archive-api DELETE /webarchive/destinations/{id}
openapi: 3.1.0
info:
  title: BrightData Web Archive API
  version: 1.0.0
  description: API to search and retrieve archived web pages.
servers:
  - url: https://api.brightdata.com
security:
  - bearerAuth: []
paths:
  /webarchive/destinations/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: 'Destination ID: `dst_` followed by 32 hex characters.'
        schema:
          type: string
          pattern: ^dst_[a-f0-9]{32}$
          example: dst_0123456789abcdef0123456789abcdef
    delete:
      summary: Delete a destination
      description: >-
        Deletes a destination. Files already delivered stay in your bucket.
        Returns 409 `destination_in_use` while a snapshot delivery that is not
        finished, failed or canceled still uses the destination. Limited to 600
        requests per minute.
      responses:
        '200':
          description: Destination deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ID of the deleted destination
                    example: dst_0123456789abcdef0123456789abcdef
                  deleted:
                    type: boolean
                    example: true
        '401':
          description: Missing or invalid API key.
        '404':
          description: >-
            `destination_not_found`: unknown ID, or a destination of another
            account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
        '409':
          description: >-
            `destination_in_use`: a snapshot delivery still uses the
            destination.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
components:
  schemas:
    DestinationError:
      type: object
      required:
        - error_code
      properties:
        error_code:
          type: string
          enum:
            - invalid_destination
            - invalid_destination_request
            - destination_not_found
            - destination_in_use
            - destination_changed
            - destination_limit_reached
            - destination_validation_superseded
            - destination_validation_failed
            - destination_validation_cooldown
            - destination_validation_busy
            - destination_validation_unavailable
            - destination_unavailable
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Use your Bright Data API Key as a Bearer token in the Authorization
        header.


        **How to authenticate:**

        1. Obtain your API Key from the Bright Data account settings at
        https://brightdata.com/cp/setting/users

        2. Include the API Key in the Authorization header of your requests

        3. Format: `Authorization: Bearer YOUR_API_KEY`


        **Example:**

        ```

        Authorization: Bearer
        b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df

        ```


        Learn how to get your Bright Data API key:
        https://docs.brightdata.com/api-reference/authentication
      bearerFormat: API Key

````