---
title: "Delete a file"
description: "The bytes go, and every link stops working."
url: "https://openemail.uk/docs/api/files/delete"
area: "API"
category: "Mailbox"
---

# Delete a file

The bytes go, and every link stops working.

`DELETE /files/{id}`

## DELETE /files/{id}

The bytes go, and every link stops working.

## Example

Needs `threads:write`. The row stays, marked deleted, and the message it came on still lists the attachment, which then fails to download. There is no undo.

**curl**

```
curl -X DELETE "$OE/files/file_6bb640f5b99e47deb758f1f5" -H "$AUTH"
```

**Response**

```
{
  "object": "file",
  "id": "file_6bb640f5b99e47deb758f1f5",
  "deleted": true
}
```

> Deleting is the owner’s, as on the Files page: an app connected by a member is refused with 403 `owner_only`. A key limited to particular addresses may delete only files that arrived at them.
