---
search:
  tags:
    - Data
    - DELETE
seo:
  description: >-
    Deletes one file from a bucket of one luna. Reference for the DELETE
    /_luna/tenants/{tenant}/files/{type}/{bucket} endpoint in the Luna API.
sidebar:
  label: Delete a file
  badge: DELETE
title: Delete a file
type: openapi-operation
---
Deletes one file from a bucket of one luna.

`DELETE /_luna/tenants/{tenant}/files/{type}/{bucket}`

**Responses**

- `200` — Whether there was a file to delete.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "deleted": true
}
```
