Endpoint
Authentication
Pass your API key in theX-API-Key header.
Path parameters
string
required
The ID of the capsule to destroy (e.g.,
cl-abc123).Response
Returns204 No Content on success. The response body is empty.
If the capsule was running, the VM is terminated immediately before deletion. If the capsule was paused, the snapshot files are removed from disk.
curl
Python SDK
Capsule context manager calls destroy() automatically when the with block exits: