You can shutdown single or all running sandboxes with the E2B CLI.

Shutdown single sandbox

To shutdown a single sandbox, run the following command:

Bash
export E2B_DOMAIN=sandbox.novita.ai
e2b sandbox kill <sandbox-id>

Shutdown all sandboxes

To shutdown all running sandboxes, run the following command:

Bash
export E2B_DOMAIN=sandbox.novita.ai
e2b sandbox kill --all