> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snipp.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Upload

Delete a file from your account by filename.

## Behavior

* Pass the file's name in the `file` header. The filename is 32 hex characters plus an extension (for example, `a1b2c3d4e5f6789012345678abcdef01.png`).
* Get the filename from the `files[].fileName` field on [`GET /posts/{code}`](/api-reference/endpoint/post) or [`GET /uploads`](/api-reference/endpoint/uploads).
* On a single-file post, deleting the file deletes the entire post.
* On an album, deleting a file removes just that file. Deleting the last remaining file deletes the album post.
* You can only delete your own uploads.

## Examples

```bash theme={null}
curl -X DELETE "https://api.snipp.gg/deleteUpload" \
  -H "api-key: YOUR_API_KEY" \
  -H "file: a1b2c3d4e5f6789012345678abcdef01.png"
```

## Responses

```json theme={null}
{
  "message": "File deleted successfully."
}
```
