cURL
curl --request DELETE \ --url https://www.datalab.to/api/v1/files/{file_id} \ --header 'X-API-Key: <api-key>'
{ "success": true, "message": "<string>" }
Delete an uploaded file.
Removes the file from both R2 storage and the database.
Successful Response
Response after deleting a file.
Confirmation message
Whether the deletion was successful
Was this page helpful?