---
title: "remove a page"
method: DELETE
path: "/api/pages/{id}"
tags: ["pages"]
---

# remove a page

`DELETE /api/pages/{id}`

Delete a custom page from the system by ID. Requires administrative privileges.

## Path parameters

- `id` integer, required

## Response `200`

successful

- Page — Representation of a page object
  - `title` string, required — Title of the page
  - `slug` string, required — Used to link to this page in URLs, must be unique and URL-safe
  - `description` string, required — For internal use, helps similar pages from one another
  - `body_markdown` string, nullable — The text (in markdown) of the ad (required)
  - `body_json` string, nullable — For JSON pages, the JSON body
  - `is_top_level_path` boolean — If true, the page is available at '/{slug}' instead of '/page/{slug}', use with caution
  - `social_image` object, nullable
  - `template` 'contained' | 'full_within_layout' | 'nav_bar_included' | 'json' | 'css' | 'txt', required — Controls what kind of layout the page is rendered in

## Other responses

- `401` — unauthorized
- `422` — unprocessable

## Changes

> 59 revisions in range; 8 could not be searched.

- **2026-07-13** (v1) `189b62b952ea` — 2 breaking
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `422`
- **2026-07-13** (v1) `7db6ba099285` — 2 breaking
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `422`
- **2026-05-28** (v1) `6550ad7be94f` — 2 info
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `422`
- **2026-03-03** (v1) `c9e7662755c2` — 2 breaking, 2 warning
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `422`
  - added the new `css` enum value to the `template` response property for the response status `200`
  - added the new `txt` enum value to the `template` response property for the response status `200`
- **2023-12-18** (v1) `1c81594090c0` — 2 info
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `422`

[Full history](https://skmtc.dev/forem/apis/forem-api-v1/changes/api/pages/:id/delete.md)

---

[API](https://skmtc.dev/forem/apis/forem-api-v1.md) · [All operations](https://skmtc.dev/forem/apis/forem-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/forem/forem-api-v1/revisions/1f64f71fc2a7/schema)
