---
title: "Delete file or directory"
method: DELETE
path: "/api/file/{DirName}/**"
tags: ["file"]
---

# Delete file or directory

`DELETE /api/file/{DirName}/**`

Deletes the specified file or directory from a media directory. Validates the resolved path against the allowed base directory to prevent path traversal.

## Response `200`

File or directory deleted

- object

---

[API](https://skmtc.net/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.net/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/versions/167593eed748/schema)
