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

# Delete a website

> Delete a website. Account-wide keys only.

Removes the site. The SDK on the site's pages stops at its next settings call. Use the erasure endpoint first if visitor data must be removed; see [Commerce endpoints](/api/commerce-endpoints).


## OpenAPI

````yaml openapi.json DELETE /sdk/{id}
openapi: 3.1.0
info:
  title: NextIntent API
  version: 1.0.0
  description: >-
    Websites, switches, the facts sheet and API keys, per account. Authenticate
    with an API key (ni_live_...) or a console session as a Bearer token. A key
    is account-wide or bound to one website; a bound key sees only that website
    and cannot create or delete websites.
servers:
  - url: https://api.nextintent.ai/v1
security:
  - bearer: []
paths:
  /sdk/{id}:
    delete:
      summary: Delete a website
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The website id
      responses:
        '204':
          description: Deleted
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````