Delete a file
DELETE
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
sandboxIdstringrequiredSandbox ID.
Query parameters
pathstringrequiredAbsolute, or relative to
/home/user. Must resolve under/home/useror/tmp.recursivebooleanRequired to delete a directory.
Defaultfalse
Responses
204Deleted.
400Missing or invalid `path`, or a directory without `recursive=true`.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Sandbox not found, or it belongs to another project.
codestringrequiredmessagestringrequireddetailsobject
409`sandbox_not_running`: the sandbox is stopped, stopping, failed or deleted; resume it first. `sandbox_not_ready`: it is still starting and did not become ready in time; retry.
codestringrequiredmessagestringrequireddetailsobject