---
title: "Delete a GitHub Enterprise Server Pages site"
method: DELETE
path: "/repos/{owner}/{repo}/pages"
tags: ["repos"]
---

# Delete a GitHub Enterprise Server Pages site

`DELETE /repos/{owner}/{repo}/pages`

Deletes a GitHub Enterprise Server Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages).

To use this endpoint, you must be a repository administrator, maintainer, or have the 'manage GitHub Pages settings' permission. A token with the `repo` scope or Pages write permission is required. GitHub Apps must have the `administration:write` and `pages:write` permissions.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `204`

Response

## Other responses

- `404` — Resource not found
- `409` — Conflict
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-5.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-5/versions/50ae54440071/schema)
