---
title: "Files kept for a deleted site"
method: GET
path: "/stats/deleted-sites/{id}/files"
tags: ["Stats"]
---

# Files kept for a deleted site

`GET /stats/deleted-sites/{id}/files`

## Request

- Base URL: `https://api.nippy.host`
- URL: `https://api.nippy.host/stats/deleted-sites/{id}/files`
- Auth: `bearer` (a scheme the document does not define)

Admin-only. The files in the trash, read from storage, path-sorted and capped like the site drill-down; `total` / `totalBytes` describe every file.

## Path parameters

- `id` string, required

## Response `200`

- APIAdminSiteFiles
  - `files` APIAdminSiteFile[], required: Files in the live manifest, path-sorted, capped by the API.
    - `path` string, required: Path relative to the site root.
    - `size` number, required: Size in bytes.
    - `contentType` string, required: Content type recorded at upload — an empty string when the upload did not carry one.
  - `total` number, required: Files in the whole manifest, before the cap.
  - `totalBytes` number, required: Bytes across the whole manifest, before the cap.
  - `truncated` boolean, required: True when `files` holds only the first page of the manifest.

## Other responses

- `403`: Admin access required
- `404`: Deleted site not found

---

[API](https://skmtc.dev/nippy/apis/nippy-backend-api.md) · [All operations](https://skmtc.dev/nippy/apis/nippy-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nippy/apis/nippy-backend-api/revisions/7ab23f040a55?raw)
