Is there an API for removing all attachments on a given page?

antony terrence May 30, 2021

Is there an API for removing all attachments on a given page? It is a pain to remove the attachments one by one. That slows down the process. When a page is updated, we need to update the attachment as well. That results in one PUT call + calls as many as the number of attachments. So basically, to update a page you end up making multiple calls. Is there a way to delete all attachment at once? I can do a multipart POST call to upload all attachments back.

1 answer

0 votes
Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2021

Hi @antony terrence 

This document provides a step-by-step procedure on how to use the Confluence REST API to delete an attachment, provided you have the attachment ID.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events