---
title: "Delete a file or folder"
method: DELETE
path: "/api/v1/files/{storage}/{path}"
---

# Delete a file or folder

`DELETE /api/v1/files/{storage}/{path}`

## Headers

- `Force` '?0' | '?1' — ?0=False, ?1=True, according RFC8941/3.3.6

## Response `204`

No Content No Error

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict

## Changes

- **2023-01-23** `bad4507192c5` — 1 info
  - added the new optional `header` request parameter `Force`
- **2022-10-13** `6a5c6d42113e` — 2 info
  - added the non-success response with the status `401`
  - removed the non-success response with the status `403`
- **2022-08-31** `1e6876397b91` — 1 info
  - endpoint added
- **2021-02-22** `30eda14983ed` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/prusa3d/apis/prusalink-web/changes/api/v1/files/:storage/:path/delete.md)

---

[API](https://skmtc.dev/prusa3d/apis/prusalink-web.md) · [All operations](https://skmtc.dev/prusa3d/apis/prusalink-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prusa3d/prusalink-web/revisions/e0a5f7abc4df/schema)
