---
title: "Delete file"
method: DELETE
path: "/media/file/{filename}"
tags: ["Media"]
---

# Delete file

`DELETE /media/file/{filename}`

Delete file

## Path parameters

- `filename` string, required

## Response `200`

successful operation

- MessageOk
  - `message` string

## Other responses

- `500` — File not found

---

[API](https://skmtc.net/smartly/apis/smartly-ai-apis.md) · [All operations](https://skmtc.net/smartly/apis/smartly-ai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartly/smartly-ai-apis/revisions/1e26909d86c9/schema)
