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
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.