# 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:

<CodeGroup isTerminalCommand>
```bash
e2b sandbox kill <sandbox-id>
```
</CodeGroup>

## Shutdown all sandboxes

To shutdown all running sandboxes, run the following command:

<CodeGroup isTerminalCommand>
```bash
e2b sandbox kill --all
```
</CodeGroup>
