Delete sandbox
Updated at:
Delete a specific instance and reclaim its compute and network resources. A deleted instance cannot be recovered. Compatible with the E2B kill protocol and corresponds to kill() in the SDK.
Prerequisites
Configure the endpoint and authentication first. See API overview and authentication.
Endpoint
DELETE /sandboxes/{sandboxID}
Delete a specific instance and reclaim its compute and network resources. A deleted instance cannot be recovered. Compatible with the E2B kill protocol and corresponds to kill() in the SDK.
Path parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
sandboxID | Yes | string | Unique instance ID. |
Request example
curl -X DELETE "$BASE_URL/sandboxes/sbx-xxx" \
-H "Authorization: Bearer $BAILIAN_API_KEY"
BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/sandbox, and BAILIAN_API_KEY is your Alibaba Cloud Model Studio API key.
Response
Returns 204 with no response body on success.
Is this page helpful?