| title | Shutdown running sandboxes |
|---|
You can shutdown single or all running sandboxes with the E2B CLI.
To shutdown a single or multiple sandboxes, run the following command:
```bash Terminal e2b sandbox kill ```To shutdown all running sandboxes, run the following command:
```bash Terminal e2b sandbox kill --all ```Further, you can filter the sandboxes to be shutdown by state, metadata or both.
```bash Terminal e2b sandbox kill --all --state=running,paused ``` ```bash Terminal e2b sandbox kill --all --metadata=key=value ``` ```bash Terminal e2b sandbox kill --all --state=running,paused --metadata=key=value ```