2020-06-17 03:08:38 +00:00
---
2022-03-23 03:07:30 +00:00
stage: Create
group: Editor
2020-11-26 06:09:20 +00: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-17 03:08:38 +00:00
---
2021-09-10 09:11:07 +00:00
# Pages API **(FREE)**
2019-12-09 09:08:00 +00:00
2020-03-23 03:09:21 +00:00
Endpoints for managing [GitLab Pages ](https://about.gitlab.com/stages-devops-lifecycle/pages/ ).
2019-12-09 09:08:00 +00: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
2022-02-02 15:17:50 +00:00
Remove pages. The user must have administrator access.
2019-12-09 09:08:00 +00:00
2020-05-20 03:08:04 +00:00
```plaintext
2019-12-09 09:08:00 +00:00
DELETE /projects/:id/pages
```
| Attribute | Type | Required | Description |
| --------- | -------------- | -------- | ---------------------------------------- |
2021-06-28 15:08:03 +00: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 09:08:00 +00:00
2020-01-30 15:09:15 +00:00
```shell
2020-05-28 00:08:37 +00:00
curl --request 'DELETE' --header "PRIVATE-TOKEN: < your_access_token > " "https://gitlab.example.com/api/v4/projects/2/pages"
2019-12-09 09:08:00 +00:00
```