cURL
curl --request DELETE \ --url https://{sandbox_id_or_name}.sandbox.tensorlake.ai/api/v1/files \ --header 'Authorization: Bearer <token>'
{ "error": "<string>", "code": "<string>" }
Delete a file through the sandbox proxy.
DELETE /api/v1/files?path=<absolute-or-relative-path>
curl -X DELETE "https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/files?path=/workspace/temp.txt" \ -H "Authorization: Bearer $TENSORLAKE_API_KEY"
204 No Content
404 Not Found
..
403 Forbidden
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Absolute or relative file path inside the sandbox.
File deleted successfully
Was this page helpful?