Delete a snapshot
DELETE
/e2b/templates/{templateID}● SupportedRequest parameters
templateIDstringrequiredpath: The snap_ snapshot ID returned by this platform. Vendor handles are not accepted.
Returns
204
Errors follow the E2B format — see error codes
Request
curl
curl -X DELETE https://api.deepraxis.com/e2b/templates/snap_0123456789abcdef01234567 \
-H "X-API-Key: $PRAXIS_API_KEY"Python
from e2b import Sandbox
opts = dict(
api_key="$PRAXIS_API_KEY",
api_url="https://api.deepraxis.com/e2b",
domain="sandbox.praxisusercontent.com",
)
print(Sandbox.delete_snapshot("snap_0123456789abcdef01234567", **opts))TypeScript
import { Sandbox } from "e2b";
const opts = {
apiKey: "$PRAXIS_API_KEY",
apiUrl: "https://api.deepraxis.com/e2b",
domain: "sandbox.praxisusercontent.com",
};
console.log(await Sandbox.deleteSnapshot("snap_0123456789abcdef01234567", opts));Response 204
(204 No Content:成功,无响应体)Response
HTTP 204
The template was deleted successfully
No response body is declared.