Delete File
Delete a file from a bucket. The file path is specified after /files/.
Authentication
Requires X-Glue-Authentication.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
bucket_id |
string | The bucket ID |
* |
string | File path |
Request
1curl -X DELETE "https://api.hola.cloud/v1/buckets/bucket-550e8400-e29b-41d4-a716-446655440000/files/images/logo.png" \
2 -H 'X-Glue-Authentication: {"user":{"id":"user-123"}}'
Response
Returns an empty successful response when the file is removed.
Error Codes
| Status | Description |
|---|---|
| 401 | Missing or invalid X-Glue-Authentication |
| 404 | File not found |
| 500 | Persistence or filesystem error |
Comments