Skip to content
中文

Kill a sandbox

Call Create sandbox first and replace sbx_123 with its returned sandboxID.

DELETE/e2b/sandboxes/{sandboxID}● Supported

Official E2B docs ↗

Request parameters

  • sandboxIDstringrequired

    path:

Returns

204

Errors follow the E2B format — see error codes

Request

curl
# Call Create sandbox first and replace sbx_123 with its returned sandboxID.
curl -X DELETE https://api.deepraxis.com/e2b/sandboxes/sbx_123 \
  -H "X-API-Key: $PRAXIS_API_KEY"
Python
# Call Create sandbox first and replace sbx_123 with its returned sandboxID.
from e2b import Sandbox

opts = dict(
    api_key="$PRAXIS_API_KEY",
    api_url="https://api.deepraxis.com/e2b",
    domain="sandbox.praxisusercontent.com",
)

Sandbox.kill("sbx_123", **opts)
TypeScript
// Call Create sandbox first and replace sbx_123 with its returned sandboxID.
import { Sandbox } from "e2b";

const opts = {
  apiKey: "$PRAXIS_API_KEY",
  apiUrl: "https://api.deepraxis.com/e2b",
  domain: "sandbox.praxisusercontent.com",
};

await Sandbox.kill("sbx_123", opts);

Response 204

(204 No Content:成功,无响应体)

Response

HTTP 204

The sandbox was killed successfully

No response body is declared.