> 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/ai-features/ask-fern/api-reference/website/delete-website ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Servers - `https://fai.buildwithfern.com` (Production, default) - `https://fai-dev.buildwithfern.com` (Development) - `http://localhost:8080` (Local) ## Request ### Path parameters - `domain` (string, required) ### Body (application/json) This endpoint expects an object. - `base_url` (string, required) — The base URL of the website to delete (deletes all pages from this source) ## Response ### 200 Successful Response - `success` (boolean, required) — Whether the website was successfully deleted - `pages_deleted` (integer, required) — Number of pages deleted ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of object, optional) - `loc` (list of string or integer, required) - `msg` (string, required) - `type` (string, required) ## Examples **Request** ```json { "base_url": "https://www.example.com" } ``` **Response** ```json { "success": true, "pages_deleted": 42 } ```