Pages API
Endpoints for managing .
The GitLab Pages feature must be enabled to use these endpoints. Find out more about administering and using the feature.
Remove pages. The user must have administrator access.
Unpublish pages
DELETE /projects/:id/pages
Attribute | Type | Required | Description |
---|---|---|---|
id
| integer/string | yes | The ID or URL-encoded path of the project owned by the authenticated user |
curl --request 'DELETE' --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/2/pages"