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

# 重設

# `openclaw reset`

重設本機設定／狀態（保留已安裝的命令列介面）。

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw reset
openclaw reset --dry-run
openclaw reset --scope config --yes --non-interactive
openclaw reset --scope config+creds+sessions --yes --non-interactive
openclaw reset --scope full --yes --non-interactive
```

## 選項

* `--scope <scope>`：`config`、`config+creds+sessions` 或 `full`
* `--yes`：略過確認提示
* `--non-interactive`：停用提示；需要 `--scope` 和 `--yes`
* `--dry-run`：列印動作而不移除檔案

## 範圍

| 範圍                      | 移除項目                          | 是否先停止閘道 |
| ----------------------- | ----------------------------- | ------- |
| `config`                | 僅設定檔                          | 否       |
| `config+creds+sessions` | 設定檔、OAuth／認證資訊目錄、各代理程式的工作階段目錄 | 是       |
| `full`                  | 狀態目錄（包括共用 SQLite 資料庫）以及工作區目錄  | 是       |

`config+creds+sessions` 和 `full` 會在刪除狀態前，停止執行中的受管理閘道服務。

## 注意事項

* 移除本機狀態前，請先執行 `openclaw backup create`，建立可還原的快照。
* 工作區設定狀態和證明是共用 SQLite 資料庫中的資料列，因此 `full` 會隨狀態目錄一併移除它們；目前沒有需要另外移除的證明附屬檔案。
* 若未使用 `--scope`，`openclaw reset` 會以互動方式提示選擇要移除的範圍。
* `--non-interactive` 僅在同時設定 `--scope` 和 `--yes` 時有效。
* `config+creds+sessions` 和 `full` 完成時會列印 `Next: openclaw onboard --install-daemon`。

## 相關內容

* [命令列介面參考](/zh-TW/cli)
