How to find static spaces
Asked by david cockrell:

Hi Community,

We would like to check our Confluence instance if there are static spaces.

for example: a static space could be a space that all/most of it's pages were not edited for over 3 years.

Are there any best practices for doing this? maybe via SQL script


Answers:
author: BHUSHAN PATIL
body: Hi [@david cockrell](/t5/user/viewprofilepage/user-id/4392729) ,

There are several ways to check for static spaces in Confluence

* One way is to use the **Confluence Analytics** feature to identify unused spaces by sorting the table by views (ascending) and selecting a space to see detailed statistics, including most popular content and active contributors. From there, the space administrator or active contributors can be contacted to see whether the space could be archived or backed up and removed.

1. [Identify unused spaces](https://confluence.atlassian.com/clean/clean-up-your-confluence-instance-1026047969.html#:~:text=7.16%20and%20later.-,Identify%20unused%20spaces,-Use%20analytics%20data)

* Another way is to view **space activity**, which displays statistics on the activity in each space, including how many pages and blog posts have been viewed, added, or updated over a given period, which content is the most popular (most frequently viewed), which content is the most active (most frequently edited), and which people are the most active contributors/editors of content

1. [View Space Activity](https://confluence.atlassian.com/conf59/view-space-activity-792498679.html)

Also, if you feel my input help you please accept the answer.

Regards,  
Bhushan

comments: author: david cockrell
body: Thanks Bhushan,

I was not aware of the this "cleanup option.

I am reviewing it now.

unfortunately I am only getting 3 months back (due to the large size of the instance) but I think this can give me a good starting point for potential cleanup.


author: Mattia _bitvoodoo ag_
body: Hello [@david cockrell](/t5/user/viewprofilepage/user-id/4392729)

As you're running Confluence Server you will not have the built-in Analytics included. It means your best option is to retrieve the desired data from the database directly. [This how-to article](https://confluence.atlassian.com/confkb/how-to-export-a-list-of-all-recently-modified-content-within-a-space-996643476.html) has examples of how to do this.

Best regards,  
Mattia

comments: author: david cockrell
body: Hi Mattia,

We are running Data Center so we do have analytics (not sure why my question was tagged as "Server")

However, due to the large size of our instance we are only getting analytics for 3 months back... So your link might come handy anyway.


author: Mattia _bitvoodoo ag_
body: I see. If you are running Data Center and are reaching the limits of Confluence's built-in Analytics, you might want to try the [Viewtracker](https://marketplace.atlassian.com/apps/28637/viewtracker-analytics-for-confluence?hosting=datacenter&tab=overview) app from the [Marketplace](https://marketplace.atlassian.com/search?hosting=dataCenter&product=confluence&query=analytics).  
It offers several [reports](https://docs.bitvoodoo.app/viewtracker-analytics-for-confluence-data-center/built-in-reports) and with just a few clicks you can get [the information](https://www.bitvoodoo.app/blog/how-to-use-viewtracker-content-usage-report-for-confluence-analytics) you are looking for as well as further insights.