Shutdown running sandboxes

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

Shutdown single sandbox

To shutdown a single sandbox, run the following command:

Terminal
e2b sandbox kill <sandbox-id>

Shutdown all sandboxes

To shutdown all running sandboxes, run the following command:

Terminal
e2b sandbox kill --all