---
title: "Delete file"
method: DELETE
path: "/files/{id}"
tags: ["files"]
---

# Delete file

`DELETE /files/{id}`

Cascading action (removes file from any datasets containing it and
deletes its previews, metadata and thumbnail).

## Response `200`

OK

## Other responses

- `400` — The server could not process your request, this happens for example when the id specified is not of the correct form. See the message field for more information.
- `401` — The request has not been applied because it lacks valid authentication credentials for the target resource.
- `404` — The requested resource was not found

---

[API](https://skmtc.net/clowder-framework/apis/clowder.md) · [All operations](https://skmtc.net/clowder-framework/apis/clowder/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clowder-framework/clowder/versions/bcd187478e0d/schema)
