UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

传统“集成”活动

上次更新日期 2026年5月18日

删除文件夹

UiPath.Box.Activities.Folder.DeleteFolder

“删除文件夹”活动使用 Box Delete 文件夹API 删除指定的文件夹 ( “文件夹 ID ”)。

After deleting the folder, the activity outputs a Boolean value to report the success of the deletion (IsSuccessful).

工作方式

以下步骤和消息序列图是活动从设计时(即活动依赖项和输入/输出属性)到运行时如何工作的示例。

  1. 完成设置步骤。
  2. “Box 作用域”活动添加到项目中。
  3. 添加活动或运行输出Folder.Id值的外部流程(例如,获取文件夹信息搜索内容等)。
  4. Add the Delete Folder activity inside the Box Scope activity.
  5. “输入”属性输入一个值。
  6. “输出”属性创建并输入Boolean变量。
    • 您的输入属性值将在“删除文件夹” API 操作请求中发送。

    • 此操作会将 Boolean 值返回到您的输出属性变量。

属性

常见

  • ContinueOnError - Specifies if you want the activity to continue running when an error is thrown. This field supports only Boolean values.
  • “显示名称”- 活动的显示名称。此字段仅支持 StringsString 变量。

输入

  • 文件夹 ID-要删除的文件夹的 ID。此字段仅支持StringsString变量。要获取文件夹 ID值,请添加活动或运行输出Folder.Id对象的外部流程(例如,获取文件夹信息搜索内容等)。

其他

  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。

选项

  • Recursive - If selected, the folder is deleted even if it is not empty. If not selected, the folder is only deleted if it is empty.

输出

  • IsSuccessful - A Boolean value that reports the success of the deletion. The Boolean values are:
    • True - file was deleted.
    • False - file was not deleted.
  • 工作方式
  • 属性
  • 常见
  • 输入
  • 其他
  • 选项
  • 输出

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新