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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events