# 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.1
info:
  title: Delete All Websites
  version: endpoint_website.delete_all_websites
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 of the form `Bearer <token>`, where token is
            your auth token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAllWebsitesResponse'
        '422':
          description: Validation Error
          content: {}
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

```