DELETE
/
filesystem
/
{path}
curl --request DELETE \
  --url https://run.blaxel.ai/{workspace_id}/sandboxes/{sandbox_id}/filesystem/{path} \
  --header 'Authorization: Bearer <token>'
{
  "message": "File created successfully",
  "path": "/path/to/file"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

path
string
required

File or directory path

Query Parameters

recursive
boolean

Delete directory recursively

Response

200
application/json

Success message

The response is of type object.