Docs
Delete File
DELETE /drives/{eventId}/files/{fileId}
DELETE
/drives/{eventId}/files/{fileId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Permanently deletes a file and all of its associated data. Requires File.* (admin) permission on the file — File.Edit is not sufficient. This action cannot be undone.
Cascading deletion includes:
- All versions of the file
- All formats (blobs) for every version, deleted from Azure Blob Storage
- All associated entities (users, collaborators, areas)
- All file links
- All activity log records
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| driveId | Guid | Required | The event ID. |
| fileId | Guid | Required | The file ID. |
Response
200 OK — No response body.
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token, or caller does not have File.* on this file. |
NOT_FOUND | 404 | File not found in this drive. |