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

# Delete Web Source

> Remove a web source and stop its scheduled re-crawls.

Delete a web source. This removes the source and its refresh schedule, but **not** the index
it built - use [`deleteIndex`](../index-management/deleteIndex) to remove the index and its
documents.

**Required fields**: `sourceId`

| Field      | Type   | Required | Notes                                                            |
| ---------- | ------ | -------- | ---------------------------------------------------------------- |
| `sourceId` | string | ✅        | Web source ID returned by `createWebSource` or `listWebSources`. |

**Example request**

```bash theme={null}
curl -X POST "https://service.usemoss.dev/v1/manage" \
  -H "Content-Type: application/json" \
  -H "x-service-version: v1" \
  -H "x-project-key: moss_access_key_xxxxx" \
  -d '{
    "action": "deleteWebSource",
    "projectId": "project_123",
    "sourceId": "7f2a9c04-3b1e-4c8a-9d2f-1e5b6a7c8d90"
  }'
```

**Responses**

<CodeGroup>
  ```json 200 - OK theme={null}
  {
    "deleted": true,
    "id": "7f2a9c04-3b1e-4c8a-9d2f-1e5b6a7c8d90"
  }
  ```
</CodeGroup>

**Errors**

* `400` when `sourceId` is missing.
* `404` if the web source is not found.
