ProjectFlow icon

ProjectFlow

Manage ProjectFlow items, comments and attachments

Attachment → Delete

AI-generated

Summary

Deletes a single attachment from a ProjectFlow item by sending a DELETE request to the ProjectFlow API for the given item ID and attachment ID.

Inputs

  • authentication — Credential type used for the request: Personal Token (default) or OAuth2. The base URL comes from the selected credential.
  • itemId (required) — ID of the ProjectFlow item that owns the attachment. Used in the path /api/v1/items/{itemId}/attachments/{attachmentId}.
  • attachmentId (required) — ID of the attachment to delete.

Output shape

One output item per input item. Its JSON is the API's response, or {"success": true, "id": } if the API returns an empty body.

The success fallback id is the attachment ID, not the item ID. If Continue On Fail is enabled, failed items return {"error": message}. Otherwise the node throws an error. Each output item is paired with its input item.

Examples

Example 1: Remove an outdated file from an item after a newer version is uploaded.

Resource: Attachment, Operation: Delete, Item ID: {{$json.itemId}}, Attachment ID: {{$json.attachmentId}}, Authentication: Personal Token.

Links

Discussion