Delete a file from the room’s R2 object storage by its key.
Endpoint
DELETE /v1/accounts/:accountId/upload
Authentication
Bearer token required.
Request Body
The storage key of the file to delete (returned from the upload endpoint).
Response
The key of the deleted file.
Example
curl -X DELETE https://api.collab-kit.com/v1/accounts/${ACCOUNT_ID}/upload \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{"key": "c3003c93/uploads/screenshot.png"}'
{
"type": "response",
"success": true,
"description": "File deleted",
"data": {
"key": "c3003c93/uploads/screenshot.png"
},
"error": null
}