> 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.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiI0YzkyY2M5ZC02ZWViLTQ1NTMtOTA1ZS05NzMwZWY2ZThkY2YiLCJleHAiOjE3ODQ4NjQyNjgsImlhdCI6MTc4NDg2Mzk2OH0.vDk4P4ZVzUT_btxV3ZU7OZTefM4EgB21Ge894XIjkLs
>
> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

# Delete Website

DELETE https://fai.buildwithfern.com/sources/website/{domain}/delete
Content-Type: application/json

Delete all pages from a specific website by base URL.

Reference: https://buildwithfern.com/learn/docs/scribe-api/website/delete-website

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: fai
  version: 1.0.0
paths:
  /sources/website/{domain}/delete:
    delete:
      operationId: delete_website
      summary: Delete Website
      description: Delete all pages from a specific website by base URL.
      tags:
        - 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/DeleteWebsiteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteWebsiteRequest'
servers:
  - url: https://fai.buildwithfern.com
    description: Production
  - url: https://fai-dev.buildwithfern.com
    description: Development
  - url: http://localhost:8080
    description: Local
components:
  schemas:
    DeleteWebsiteRequest:
      type: object
      properties:
        base_url:
          type: string
          description: >-
            The base URL of the website to delete (deletes all pages from this
            source)
      required:
        - base_url
      title: DeleteWebsiteRequest
    DeleteWebsiteResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the website was successfully deleted
        pages_deleted:
          type: integer
          description: Number of pages deleted
      required:
        - success
        - pages_deleted
      title: DeleteWebsiteResponse
    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

```

## Examples



**Request**

```json
{
  "base_url": "string"
}
```

**Response**

```json
{
  "success": true,
  "pages_deleted": 1
}
```