The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Automated solution to delete empty pages?

Varun Kumar Parbhakar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2019

How to delete all empty pages from confluence? Is there any automated solution?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2019

Hello Varun and welcome to the Community!

You may utilize the API to request all pages from within a space. You would use the GET Content call. Once you have all pages from space you can filter out any pages which have the following  example of a page with no content:

"body": {"view": {"value": "”}}

From this, you can then obtain the contentId for each of those pages you wish to delete. Once you have the contentId you would then use the DELETE REST API call.

If working with the API is not desirable, then we would suggest reviewing the Atlassian Marketplace to see available plugins. You may search the marketplace at https://marketplace.atlassian.com/.

I hope this is helpful in providing guidance on how to search for and delete Confluence pages with no content.

Regards,
Stephen Sifers

TAGS
AUG Leaders

Atlassian Community Events