> 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 All Websites

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

Delete all indexed website pages for a domain.

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

## Authentication

- `Authorization` header (bearer token, required)

## Servers

- `https://fai.buildwithfern.com` (Production, default)
- `https://fai-dev.buildwithfern.com` (Development)
- `http://localhost:8080` (Local)

## Request

### Path parameters

- `domain` (string, required)

## Response

### 200

Successful Response

- `success` (boolean, required) — Whether all websites were successfully deleted
- `pages_deleted` (integer, required) — Total number of pages deleted

## Examples

**Response**

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