Actions75
- 空间 Actions
- 工作项实例读写 Actions
- 工作项实例搜索 Actions
- 工作项配置 Actions
- 流程模板配置 Actions
- 流程与节点 Actions
- 视图 Actions
- 子任务 Actions
- 空间关联 Actions
- 评论 Actions
- 附件 Actions
- 用户 Actions
- 群组 Actions
- 度量 Actions
- 角色与人员配置 Actions
附件 → 删除附件
AI-generatedOverview
This node operation deletes attachments from a specified work item in a Feishu project space. It is useful for managing and cleaning up attachments associated with work items, such as removing outdated or incorrect files. For example, a project manager can automate the deletion of obsolete attachments from task items to keep the project workspace organized.
Use Case Examples
- Delete attachments from a work item by specifying the project space, work item type, work item ID, attachment field, and the UUIDs of the attachments to be removed.
- Automate cleanup of attachments in bulk across multiple work items within a project space.
Properties
| Name | Meaning |
|---|---|
| 空间 | The project space where the work item resides. Can be selected from a list or entered manually as a project key. |
| 工作项类型 Name or ID | The type of work item within the selected space. Must be chosen from a list of available work item types or specified by ID. |
| 工作项实例ID | The unique ID of the work item instance from which attachments will be deleted. |
| 附件字段 Name or ID | The target attachment field in the work item from which attachments will be deleted. Must be selected after choosing the space and work item type. |
| 附件UUID列表 | A list of unique identifiers (UUIDs) for the attachments to be deleted. Multiple UUIDs can be separated by commas or passed as an array expression. |
Output
JSON
success- Indicates whether the attachment deletion was successful.deletedUUIDs- List of UUIDs of the attachments that were deleted.
Dependencies
- Requires Feishu Project API credentials for authentication.
Troubleshooting
- Ensure the project space (project_key) is correctly specified and accessible.
- Verify that the work item type and work item ID are valid and exist in the specified space.
- Make sure the attachment field key corresponds to a multi-file attachment field in the work item.
- Check that the UUIDs provided are correct and correspond to existing attachments.
- Common errors include authorization failures due to invalid API credentials, missing required parameters, or attempting to delete attachments from non-existent work items or fields.
Links
- 获取空间下工作项类型 - Documentation on how to get work item types under a project space in Feishu.