> 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/action-shi-yong-zhi-nan/file-and-folder/delete-folder.md).

# Delete folder

Delete folder 是用于根据指定路径将文件夹从计算机硬盘中彻底删除的操作。执行时，该操作会扫描并删除文件夹内部的所有文件以及所有子文件夹。

> ⚠️ 极其重要提示：使用此操作删除的文件夹将被永久销毁，不会进入 Windows 的回收站（Recycle Bin）。您需要仔细检查路径，以避免误删系统文件夹或计算机中的重要数据。

🎥 查看更多教学视频：[点击这里](https://youtu.be/EH7olDLAb9c)。

#### 配置参数：

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

#### 实际示例：Workflow 运行完成后自动清理缓存（Cache）文件夹

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

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

* 配置方法：在脚本的最后一步，调用 Delete folder 操作。
  * Folder Path：填写所使用的临时文件夹路径，例如：`D:\GPM_Softwares\Render_Temp`。
* 结果：系统将彻底删除 `Render_Temp` 文件夹以及其中产生的所有垃圾文件。您的计算机将始终保持干净、运行流畅，无需担心在长时间自动挂机运行后出现内存爆满的情况。

<figure><img src="/files/pXptALeJK8NFXCkTMW8O" alt=""><figcaption></figcaption></figure>


---

# 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/action-shi-yong-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.
