> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/delete-folder.md).

# 删除文件夹

删除文件夹是指将指定路径下的文件夹完全从计算机硬盘中删除的操作。执行时，该操作将彻底清除并删除其中的所有文件以及子文件夹。

> ⚠️ 非常重要的注意事项：通过此操作删除的文件夹将被永久删除，不会出现在Windows的回收站中。您需要仔细检查路径，以避免错误删除系统文件夹或计算机的重要数据。

#### 配置参数：

* 文件夹路径：指向需要删除的计算机文件夹的绝对路径（例如：`D:\GPM_Data\temp_cache`）。

#### 实际示例：在运行完流程后自动清理缓存文件夹

当您编写脚本将短视频（Shorts、Reels、TikTok）下载到计算机进行处理、编辑并上传到其他频道时，脚本通常会创建一个临时文件夹来存放原始视频文件、分离的音频文件以及在渲染过程中产生的数据。

在脚本成功将视频上传到各个平台后，您需要删除这个临时文件夹，以释放硬盘空间：

* 配置方法：在脚本的最后一步，您调用删除文件夹的操作。
  * 文件夹路径：填写已使用的临时文件夹路径，例如：`D:\GPM_Softwares\Render_Temp`。
* 结果：系统将彻底删除`Render_Temp`文件夹及其内部产生的所有垃圾文件。您的计算机将始终保持干净，运行流畅，并且在长时间自动挂起后不会担心存储空间不足。


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.gpmautomate.com/automate-zh/cao-zuo-zhi-nan/file-and-folder/delete-folder.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
