Shutdown running sandboxes
You can shutdown single or all running sandboxes with the E2B CLI.
Shutdown single or multiple sandboxes
To shutdown a single or multiple sandboxes, run the following command:
e2b sandbox kill <sandbox-id1> <sandbox-id2> <sandbox-id3>Shutdown all sandboxes
To shutdown all running sandboxes, run the following command:
e2b sandbox kill --allFurther, you can filter the sandboxes to be shutdown by state, metadata or both.
e2b sandbox kill --all --state=running,pausede2b sandbox kill --all --metadata=key=valuee2b sandbox kill --all --state=running,paused --metadata=key=valueWas this page helpful?Suggest editsRaise issue