> ## Documentation Index
> Fetch the complete documentation index at: https://ppio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 关闭运行中的沙箱

export const SandboxCliConfigHint = () => {
  if (typeof document === "undefined") {
    return null;
  } else {
    return <Note>在运行本文档中命令行相关的示例代码前，请参考 <Link href="/sandbox/cli">教程</Link> 来进行安装 PPIO 沙箱命令行工具，并完成  <Link href="/sandbox/cli-auth">认证</Link>。</Note>;
  }
};

您可以使用 PPIO 沙箱命令行工具关闭单个或所有正在运行的沙箱。

<SandboxCliConfigHint />

## 关闭单个沙箱

要关闭单个沙箱，请运行以下命令：

```bash Bash icon="terminal" theme={null}
ppio-sandbox-cli sandbox kill <sandbox-id>
```

## 关闭所有沙箱

要关闭所有正在运行的沙箱，请运行以下命令：

```bash Bash icon="terminal" theme={null}
ppio-sandbox-cli sandbox kill --all
```
