# POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel

**Resource:** [repos](../resources/repos.md)
**Cancel a GitHub Pages deployment**
**Operation ID:** `repos/cancel-pages-deployment`

Cancels a GitHub Pages deployment.

The authenticated user must have write permissions for the GitHub Pages site.

## Responses

| Status | Description |
|--------|-------------|
| 204 | (reference) |
| 404 | (reference) |

