---
title: "Delete a Report PDF"
method: DELETE
path: "/reports/files/{filename}"
tags: ["Reports"]
---

# Delete a Report PDF

`DELETE /reports/files/{filename}`

## Request

- Base URL: `https://api.astroway.info/v1`
- URL: `https://api.astroway.info/v1/reports/files/{filename}`
- Auth: API key in header `X-Api-Key`

Delete a PDF this account made before its retention runs out. `filename` is the last part of the report `url`. Any key of the same account may delete it; a file made by another account answers 404. Free, so an account with no credits left can still remove a client's report.

## Path parameters

- `filename` string, required

## Query parameters

- `fields` string
- `precision` integer

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `storage_key` string, nullable
    - `deleted` boolean, nullable

## Other responses

- `400`: Validation error
- `401`: Missing or invalid API key

## Changes

- **2026-10-19** `e9234ffdb4f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/reports/files/:filename/delete.md)

---

[API](https://skmtc.dev/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.dev/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/astroway/apis/astroway-calculation-api/revisions/593d763ba9a5?raw)
