---
title: "Unpublish Pages"
method: DELETE
path: "/api/v4/projects/{id}/pages"
tags: ["gitlab_pages"]
---

# Unpublish Pages

`DELETE /api/v4/projects/{id}/pages`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/pages`
- Auth: none declared

Unpublishes Pages from a specified project. You must have the Maintainer or Owner role for the project.

## Path parameters

- `id` string, required

## Response `204`

Unpublish Pages

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
