> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI2YjIzNTg2ZS03ZjVhLTRhMTctOGUwZi0xMGE4MjQzZmM0ZjciLCJleHAiOjE3NzgzMzIzMDMsImlhdCI6MTc3ODMzMjAwM30.LFy4F0iXz7Imv8BVjMF1opTk_pb6yXQraXSmP-7ksoo
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# Delete All Websites

DELETE https://fai.buildwithfern.com/sources/website/{domain}/delete-all

Delete all indexed website pages for a domain.

Reference: https://buildwithfern.com/learn/docs/ai-features/ask-fern/api-reference/website/delete-all-websites

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: fai
  version: 1.0.0
paths:
  /sources/website/{domain}/delete-all:
    delete:
      operationId: delete-all-websites
      summary: Delete All Websites
      description: Delete all indexed website pages for a domain.
      tags:
        - subpackage_website
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAllWebsitesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
servers:
  - url: https://fai.buildwithfern.com
  - url: https://fai-dev.buildwithfern.com
  - url: http://localhost:8080
components:
  schemas:
    DeleteAllWebsitesResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether all websites were successfully deleted
        pages_deleted:
          type: integer
          description: Total number of pages deleted
      required:
        - success
        - pages_deleted
      title: DeleteAllWebsitesResponse
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```