capabilities.work

Audit and Prune a Page Attachment

A 3-step recipe with Confluence. We can help you get access.

Recipe · 3 steps

Audit and Prune a Page Attachment

Works with AI assistants

Inspect an attachment on a Confluence page and optionally remove it.

  1. List the attachments on the page to establish the audit context and show what else is stored against this page.
  2. Read the target attachment in full to expose the media type, file size, version, and download link that a listing does not fully carry. This is the evidence the deletion decision rests on.
  3. Delete the inspected attachment. Only reached once the caller has confirmed, and after the full record has been captured above.
What you'll need to have ready
  • pageId: The id of the page whose attachments are being audited.
  • attachmentId: The id of the attachment to inspect and possibly remove.
  • confirmDelete: When true the inspected attachment is deleted. When false the flow is a read-only audit and stops after the inspection.
For your developer

Arazzo workflow confluence:audit-page-attachment, 3 operations: getPageAttachments → getAttachmentById → deleteAttachment. Specs on APIs.io.