---
title: "Delete page data entries by time"
method: DELETE
path: "/api/{ns}/{id}/state/{col}"
tags: ["Page data"]
---

# Delete page data entries by time

`DELETE /api/{ns}/{id}/state/{col}`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/{ns}/{id}/state/{col}`
- Auth: one of:
  - API key in header `X-Owner-Token`
  - API key in header `X-Manage-Key`

Deletes every entry and every visitor file of one list created after `after` and/or before `before` (ISO 8601 instants, both exclusive, at least one). To empty a list send before=9999-12-31T23:59:59Z. Cannot be undone.

## Path parameters

- `ns` string, required
- `id` string, required
- `col` string, required

## Query parameters

- `after` string
- `before` string

## Headers

- `X-Owner-Token` unknown
- `X-Manage-Key` unknown

## Response `200`

Deleted: {deleted: n}, entries and files together

- StateDeleteResponse
  - `deleted` integer, required: Entries and files deleted

## Other responses

- `400`: STATE_INVALID: list name or time has a mistake, or neither bound was sent
- `403`: Owner token revoked or expired; or OWNER_AUTHORIZATION_FAILED: a public publication you do not own
- `404`: PUBLICATION_UNAVAILABLE: no such HTML page or site, not yours, hidden or expired
- `429`: Rate limited: wait Retry-After (= retryAfterSeconds); no account: accountUrl, free sign-up with higher limits
- `503`: STATE_UNAVAILABLE: page data is switched off for now; wait Retry-After

## Changes

- **2026-11-21** `19a6c5561e70`: 5 info
  - added the optional property `level` to the response with the `400` status
  - added the optional property `level` to the response with the `403` status
  - added the optional property `level` to the response with the `404` status
  - added the optional property `level` to the response with the `429` status
  - …1 more
- **2026-11-11** `957711dab4b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/:ns/:id/state/:col/delete.md)

---

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