Skip to main content

Delete sandbox

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

ParameterRequiredTypeDescription
sandboxIDYesstringUnique 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.
Managed Agent API
Flow Agent API
RAG API
Long-term Memory
ParseX API
Security API
Framework Integration