Permanently delete a file from R2 storage. This action cannot be undone.
This endpoint requires authentication via API key.
The unique file key of the file to delete
curl -X DELETE https://api.verbalisai.com/v1/storage/file/user123/audio-recording-1642234567.mp3 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"message": "File deleted successfully",
"data": {
"fileKey": "user123/audio-recording-1642234567.mp3",
"deletedAt": "2024-01-15T10:30:00Z"
}
}
Response Fields
Indicates if the deletion was successful
Human-readable confirmation message
Show Deletion Information Object
File key of the deleted file
ISO timestamp when file was deleted
Important Notes
- File deletion is permanent and cannot be undone
- Any transcriptions or other services referencing this file may become inaccessible
- You can only delete files that belong to your account
- Rate limiting applies to deletion operations