Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bulk deletion of attachments from confluence

Nallareddy Manasa February 7, 2022

We have multiple(eg : 343) attachments in a confluence page , only 20-30 attachments are useful ,we need to delete all the remaining attachments in bulk. So , is there any way for bulk deletion in confluence.

2 answers

0 votes
Pramodh M
Community Champion
February 8, 2022

@Nallareddy Manasa 

Welcome to the Community 🙂

There is no option as of now

Please use below guide to delete attachments

https://confluence.atlassian.com/confkb/confluence-rest-api-lacks-delete-method-for-attachments-715361922.html

It's the same concept for cloud as well

Thanks

Paula Hidalgo
Contributor
April 19, 2022

The link @Pramodh M gave specifies the DELETE /wiki/rest/api/content/{id} is valid on Confluence 7.17 server.  This API call  is also valid for Confluence Cloud: https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-id-delete

0 votes
Pavel Junek
Community Champion
February 7, 2022

Hi,

Welcome to Atlassian community!

Unfortunately, it is not possible to delete attachments as bulk by default - https://jira.atlassian.com/browse/CONFSERVER-17020.

You can try addon for eg. Delete Attachments (Statistics) or Delete Unused Attachments 

Pavel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events