> For the complete documentation index, see [llms.txt](https://mixdao.gitbook.io/dfinity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mixdao.gitbook.io/dfinity/san-shou-ba-shou/7.-gu-zhang-pai-chu/shan-chu-canister-mu-lu.md).

# 删除Canister目录

如果在成功连接到Internet Computer并注册Canister标识符后遇到构建或部署的问题，则应在尝试重建或重新部署之前删除Canister目录。

通过在项目的根目录中运行以下命令来删除项目的Canister目录：

**`rm -rf ./.dfx/* canisters/*`**
