---
title: "Delete a page"
method: DELETE
path: "/v1/workspace/website/{website_id}/pages/{page_id}"
tags: ["Page Management"]
---

# Delete a page

`DELETE /v1/workspace/website/{website_id}/pages/{page_id}`

## Request

- Base URL: `https://api.lindo.ai`
- URL: `https://api.lindo.ai/v1/workspace/website/{website_id}/pages/{page_id}`
- Auth: HTTP bearer

Permanently deletes a page. If the page was published, also removes the HTML file from storage and purges the cache.

## Path parameters

- `website_id` string, required: Unique identifier of the website
- `page_id` string, required: Unique identifier of the page

## Response `200`

Page deleted successfully

- PageDeleteResponse
  - `success` true, required: Indicates the operation was successful
  - `result` PageDeleteResult, required
    - `message` string, required: Success message
    - `page_id` string, required: Unique identifier of the deleted page
    - `warnings` string[]: Warnings for partial failures (e.g., R2 file removal or cache purge failures)

## Other responses

- `401`: Unauthorized - invalid or missing API key
- `404`: Page not found
- `500`: Internal server error

---

[API](https://skmtc.dev/lindo/apis/lindo-unified-api.md) · [All operations](https://skmtc.dev/lindo/apis/lindo-unified-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lindo/apis/lindo-unified-api/revisions/2672f34525a4?raw)
