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

# stackkit remove

> 卸载本地 StackKits 部署

卸载本地 StackKits 部署。

卸载这台机器上的 StackKits 运行时。

不带 `--workload` 时，这是产品级卸载：它会停止并删除每个名为 stackkit-\* 的 Compose 项目（Basement 核心、Cloud 核心以及所选用例），包括它们的网络，同时保留命名数据卷。添加 `--delete-data` 可有意删除这些卷。`--purge` 还会删除所选工作区的状态、部署目录和缓存镜像。它会先查找当前目录，然后是 \~/my-homelab 或 \~/my-cloud-homelab。

`--workload` 通过其已应用的运行时所有者移除一个确切的 Architecture v2 工作负载。除非设置了 `--delete-data`，否则该路径会保留应用卷。

```bash theme={null}
stackkit remove [flags]
```

| 标志 | 类型 | 默认值 | 说明 |
| - | - | - | - |
| `--artifact-manifest` | string | — | Architecture v2 生成清单 |
| `--auto-approve` | bool | — | 跳过交互式确认 |
| `--delete-data` | bool | — | 删除所选移除范围内的命名卷（默认保留应用数据） |
| `--force` | bool | — | 旧版兼容标志；未完成的移除仍会失败，并保留恢复状态 |
| `--generation-receipt` | string | — | Architecture v2 生成回执 |
| `--inventory` | string | — | Architecture v2 观测到的 Inventory（否则会选取一个常规的 inventory 文件） |
| `--json` | bool | — | 以 JSON 输出规范的 Architecture v2 移除结果 |
| `--local-execution-channel` | string | — | 此移除进程所拥有的确切已应用执行通道 |
| `--local-node` | string | — | 此移除进程所拥有的确切已应用节点放置 |
| `--local-site` | string | — | 此移除进程所拥有的确切已应用 Site 放置 |
| `--purge` | bool | — | 删除命名运行时卷、所选工作区状态、部署目录以及缓存的 StackKit 镜像 |
| `--resolved-plan` | string | — | Architecture v2 规范的 ResolvedPlan |
| `--terminal-evidence-json` | bool | — | 以 JSON 输出有界的、规范的 Architecture v2 终态证据 |
| `--workload` | string | — | 要移除的确切 Architecture v2 ResolvedPlan 工作负载引用 |

**示例**

```bash theme={null}
# Uninstall the whole local deployment after typing yes
stackkit remove

# Uninstall without the confirmation prompt
stackkit remove --auto-approve

# Uninstall the local deployment and intentionally delete its named volumes
stackkit remove --delete-data --auto-approve

# Remove only the Files workload and keep its data volumes
stackkit remove --workload files

# Remove the Photos workload, delete its data volumes, and print the result as JSON
stackkit remove --workload photos --delete-data --auto-approve --json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.