public. Deletes a page and optionally descendant pages by moving them to the archive
| Name | Type | Description |
| pageid | string | either an integer page ID, "home", or "=" followed by a double uri-encoded page title |
| Name | Type | Description |
| authenticate | bool? | Force authentication for request (default: false) |
| recursive | bool? | only delete page or delete page and descendants. Default: false |
| redirects | int? | If zero, do not follow page redirects. |
| Name | Value | Description |
| BadRequest | 400 | Invalid input parameter or request body |
| Forbidden | 403 | Update/delete access to the page is required |
| NotFound | 404 | Requested page could not be found |
| Ok | 200 | Request completed successfully |
Output:
<deletedpages count="{int}">
<page id="{int}" href="{uri}">
<title>{text}</title>
<path>{text}</path>
</page>
...
</deletedpages>
When a page is deleted, the page and all files on it are moved into the archive. A page is never permanently deleted; it will remain in the archive until it is restored (POST:archive/pages/{pageid}/restore). While a page is in the archive, it cannot be modified.
If the recursive=true query parameter is specified, the page and all its descendants will be deleted. Otherwise, if the page has descendants, a placeholder parent page will be created for them.
Use GET:pages to retrieve a list of existing pages.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |