---
title: "Delete one page data file"
method: DELETE
path: "/api/{ns}/{id}/state/{col}/_files/{fileId}"
tags: ["Page data"]
---

# Delete one page data file

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

## Request

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

Deletes the visitor file with this id (from a listing) in any list. Entries stay. Cannot be undone.

## Path parameters

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

## Headers

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

## Response `200`

Deleted: {deleted: 1}

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

## Other responses

- `400`: STATE_INVALID: the list name has a mistake
- `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; or STATE_NOT_FOUND: no such file in this list
- `429`: Rate limited: wait Retry-After (= retryAfterSeconds); no account: accountUrl, free sign-up with higher limits
- `503`: STATE_UNAVAILABLE: page data or its files are 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-16** `31cd78c9ccd6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/:ns/:id/state/:col/_files/:fileId/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)
