Removes the file or directory (recursively) at the given path inside the sandbox.
Returns an empty {} body regardless of whether the path existed — the operation
is idempotent.
Directory removal is recursive. All files and subdirectories under the specified
path are permanently deleted.
Path Parameters
The sandbox identifier. Format: sbx-<8 chars>.
Query Parameters
Absolute path of the file or directory to remove inside the sandbox.Example: /home/user/old-results/
Response
Returns an empty JSON object {}.
Example
curl -X DELETE "https://api.declaw.ai/sandboxes/sbx-a1b2c3d4/files?path=/home/user/old-results" \
-H "X-API-Key: YOUR_API_KEY"
Error Responses
| Status | Cause |
|---|
401 | Missing or invalid API key |
404 | Sandbox not found |
503 | Sandbox has no VM |