Skip to content
中文

Delete a snapshot

DELETE/sandbox/v1/snapshots/{snapshotID}● Supported

Official E2B docs ↗

Request parameters

  • snapshotIDstringrequired

    path: The snap_ snapshot ID returned by this platform.

Returns

204

Errors follow the E2B format — see error codes

Request

curl
curl -X DELETE https://api.deepraxis.com/sandbox/v1/snapshots/snap_0123456789abcdef01234567 \
  -H "X-API-Key: $PRAXIS_API_KEY"
Python
import requests

api_key = "$PRAXIS_API_KEY"

# Call /sandbox/v1 directly over HTTP.
resp = requests.delete(
    "https://api.deepraxis.com/sandbox/v1/snapshots/snap_0123456789abcdef01234567",
    headers={"X-API-Key": api_key},
)
print(resp.status_code, resp.text)
TypeScript
const apiKey = "$PRAXIS_API_KEY";

// Call /sandbox/v1 directly over HTTP.
const resp = await fetch(`https://api.deepraxis.com/sandbox/v1/snapshots/snap_0123456789abcdef01234567`, {
  method: "DELETE",
  headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());

Response 204

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

Response

HTTP 204

The template was deleted successfully

No response body is declared.