Kills a background process tracked in the sandbox process list and removes it from
the list. Returns { "killed": true } if the process was found and removed, or
{ "killed": false } if it was not in the tracked list.
This endpoint removes the process from the API’s tracking list. The underlying VM
process termination is handled by the envd daemon.
Path Parameters
The sandbox identifier. Format: sbx-<8 chars>.
Process ID of the background command to kill.Example: 42
Response
true if the process was found and removed. false if no process with that
PID was tracked.
Example
curl -X DELETE https://api.declaw.ai/sandboxes/sbx-a1b2c3d4/commands/42 \
-H "X-API-Key: YOUR_API_KEY"
Error Responses
| Status | Cause |
|---|
400 | pid path parameter is not a valid integer |
401 | Missing or invalid API key |