2019-12-09 04:08:00 -05:00
# Pages API
2020-03-22 23:09:21 -04:00
Endpoints for managing [GitLab Pages ](https://about.gitlab.com/stages-devops-lifecycle/pages/ ).
2019-12-09 04:08:00 -05:00
The GitLab Pages feature must be enabled to use these endpoints. Find out more about [administering ](../administration/pages/index.md ) and [using ](../user/project/pages/index.md ) the feature.
## Unpublish pages
2020-01-30 13:08:57 -05:00
Remove pages. The user must have admin privileges.
2019-12-09 04:08:00 -05:00
```text
DELETE /projects/:id/pages
```
| Attribute | Type | Required | Description |
| --------- | -------------- | -------- | ---------------------------------------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project ](README.md#namespaced-path-encoding ) owned by the authenticated user |
2020-01-30 10:09:15 -05:00
```shell
2019-12-09 04:08:00 -05:00
curl --request 'DELETE' --header "PRIVATE-TOKEN: < your_access_token > " https://gitlab.example.com/api/v4/projects/2/pages
```