> For the complete documentation index, see [llms.txt](https://help.titanapp.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.titanapp.info/titan-network-zhong-wen/3-ce-ka-xi-ni-ce-shi-wang/yun-xing-jie-dian/l2-edge-jie-dian/yun-xing-jie-dian-zhuan-qu/lao-jie-dian-qing-li-zhi-nan/macoscli-jie-dian-shu-ju-qing-li.md).

# MacOS-CLI节点数据清理

当您需要清理Titan Edge的数据时，操作将根据是否设置了`TITAN_EDGE_PATH`或`EDGE_PATH`环境变量而有所不同。请按照下面的指南操作：

**没有设置环境变量**

如果您**没有指定**`TITAN_EDGE_PATH`或`EDGE_PATH`环境变量，需要删除默认的Titan Edge数据目录。请执行以下命令：

```bash
rm -rf ~/.titanedge
```

**已设置环境变量**

如果您**已指定**`TITAN_EDGE_PATH`或`EDGE_PATH`环境变量，您应该删除这些环境变量指向的具体目录。请根据您的环境变量设置，选择相应的命令执行：

* **如果设置了`TITAN_EDGE_PATH`:**

```bash
rm -rf $TITAN_EDGE_PATH
```

* **如果设置了`EDGE_PATH`:**

```bash
rm -rf $EDGE_PATH
```

这些命令将删除环境变量指定的目录及其所有内容。请确保替换命令中的`<TITAN_EDGE_PATH>`或`<EDGE_PATH>`为实际的环境变量值。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.titanapp.info/titan-network-zhong-wen/3-ce-ka-xi-ni-ce-shi-wang/yun-xing-jie-dian/l2-edge-jie-dian/yun-xing-jie-dian-zhuan-qu/lao-jie-dian-qing-li-zhi-nan/macoscli-jie-dian-shu-ju-qing-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
