Install the SDK, or the CLI for
ppio commands, and set the PPIO_API_KEY and PPIO_DOMAIN environment variables before running these examples. See Quickstart and Install and authenticate.Kill a connected sandbox
Callkill() on the sandbox handle.
Kill by sandbox ID
Use the namespacekill method when only the sandbox ID is at hand. It returns true if the sandbox was found and killed, and false if no sandbox with that ID exists. In the examples, sbx-123 and <sandbox-id> stand for a sandbox ID.
Kill all sandboxes
The CLI can kill every running sandbox at once with-a / --all, optionally filtered by state or metadata.
CLI