Bulk delete attachments

Hello all,

apologies if it is something obvious but I am missing on this...

Is there a way I can delete multiple attachements from a space without doing one by one? I have ca. 300 images I need to remove from a few pages and I dread the idea of deleting one by one...

thanks for the help!

3 answers

1 accepted

0 votes
Accepted answer

No matter what I tried I had issues connecting on Windows 7, this seems to be caused by security features, however worked perfect on XP

As a workaround I used Bitknex ( http://www.bitkinex.com/ftp/client/bitkinex323.exe)
I tried it on my local machine under Windows 7 it worked without any issues :D!!


You could also use the Power Scripts for Confluence add-on:


It is a free add-on. I've found Power Scripts for Confluence really handy for Confluence admins who want to automate their work and apply bulk actions to Confluence.

You could write a script like this:

number pageId = 123456;
deleteAttachment(pageId, "attachmentToDelete.txt");;
0 votes
Davin Studer Community Champion Jul 21, 2014

Look into the WenDAV plugin for Confluence. It will allow you to work with Confluence as f it were a file system ... which will give you the ability to select multuiple files at once and delete them en mass. Be careful though. With great power comes great ability to mess up everything.

thanks David, I will try WebDav.
It seems to me that the documentation about the plugin is really bare. Have you by any chance heard of any other source where I can learn more about WebDav? (ehmm, I never used it before, I am afraid...)


Davin Studer Community Champion Jul 22, 2014

First of all I'm using Windows, so I only know what I've done. If you are using Linux or a Mac, then I'm not sure what to do there. But if you are on windows you can map Confluence to a drive letter. I chose "O" for "Oh my goodness, this is so cool." :) This is the UNC path to map it to a drive letter. Replace {sever} with your sever name. Be very careful with it though. You could easily delete more than what you want.


Thanks, this is great, I will try it out! (LOLing about the O drive :D)!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

477 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you