---
title: "Delete File"
method: DELETE
path: "/{storageZoneName}/{path}/{fileName}"
tags: ["Manage Files"]
---

# Delete File

`DELETE /{storageZoneName}/{path}/{fileName}`

Delete an object from the storage zone. In case the object is a directory all the data in it will be recursively deleted as well.

## Path parameters

- `storageZoneName` string, required
- `path` string, required
- `fileName` string, required

## Query parameters

- `allowRootDelete` 'true'

## Headers

- `AccessKey` string, required
- `allowRootDelete` 'true'

## Response `200`

Object was successfully deleted

## Other responses

- `400` — Object delete failed

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/revisions/9e622620664b/schema)
