2020-06-16 23:08:38 -04:00
---
stage: Release
2020-12-01 10:09:28 -05:00
group: Release
2020-11-26 01:09:20 -05:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-06-16 23:08:38 -04:00
---
2021-09-10 05:11:07 -04:00
# Pages API **(FREE)**
2019-12-09 04:08:00 -05:00
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
2021-09-22 11:12:06 -04:00
Remove pages. The user must have the Administrator role.
2019-12-09 04:08:00 -05:00
2020-05-19 23:08:04 -04:00
```plaintext
2019-12-09 04:08:00 -05:00
DELETE /projects/:id/pages
```
| Attribute | Type | Required | Description |
| --------- | -------------- | -------- | ---------------------------------------- |
2021-06-28 11:08:03 -04:00
| `id` | integer/string | yes | The ID or [URL-encoded path of the project ](index.md#namespaced-path-encoding ) owned by the authenticated user |
2019-12-09 04:08:00 -05:00
2020-01-30 10:09:15 -05:00
```shell
2020-05-27 20:08:37 -04:00
curl --request 'DELETE' --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/projects/2/pages"
2019-12-09 04:08:00 -05:00
```