How to find stale and outdated pages in Confluence Cloud
Updated 2 December 2026 · 8 min read
Short answer: Run a CQL query on the lastmodified field, such as type = page and space = ENG and lastmodified < now("-365d"), through the Confluence Cloud REST search API to list pages nobody has edited in a year. Premium and Enterprise sites also get a content manager with a Last active filter, and page analytics shows views per page. None of these tools can tell you a page is wrong, only that it is old or unread, so pair the list with an owner and a review step.
What counts as a stale page in Confluence Cloud?
A stale page is a page whose last edit is older than the pace of change in the thing it describes. Confluence records a last modified date for every page, so age is the one signal every site can query.
Age is a proxy, not proof. A decision record from 2022 can be perfectly correct, and a page edited yesterday for a typo can still describe a system that no longer exists. Choose thresholds by page type instead of one number for the whole site. These are reasonable starting points for engineering docs:
| Page type | Review when it is older than | Why |
|---|---|---|
| Runbooks and on-call guides | 90 days | Commands, dashboards and owners change often. |
| Service and architecture overviews | 180 days | They change with releases, not with every commit. |
| Onboarding and how-to guides | 180 days | Tooling and access steps drift slowly. |
| Decision records and postmortems | Never, by age | They record a moment in time. Label them so queries can skip them. |
How do you find stale pages with CQL?
CQL (Confluence Query Language) is Confluence's structured search syntax. Its lastmodified field matches content last modified on, before or after a date, and it accepts the operators =, !=, >, >=, < and <=. Atlassian documents the field in its CQL fields reference.
Relative dates use now() with an offset. Atlassian's CQL examples show now("-4w"), and the date functions accept offsets in years, months, weeks, days, hours and minutes (y, M, w, d, h, m). You can also write a fixed date such as "2025-01-01".
The Confluence search page does not accept typed CQL fields reliably, so run the query through the REST API:
- Create an Atlassian API token for an account that can view the spaces you want to check.
- Send the query to the search endpoint. This example lists pages in the ENG space that nobody has edited for 365 days, oldest first (an example, replace the site and space):
curl --get -u "[email protected]:$ATLASSIAN_API_TOKEN" \
"https://your-site.atlassian.net/wiki/rest/api/search" \
--data-urlencode 'cql=type = page and space = ENG and lastmodified < now("-365d") order by lastmodified asc' \
--data-urlencode 'limit=50' \
| jq -r '.results[] | "\(.lastModified) \(.title)"'
Each result includes the page title, a lastModified timestamp and a URL. Results are paged, so raise limit or follow the next link in the response. Here are queries for the most common questions (examples, replace the label and the page ID with your own):
| Question | CQL |
|---|---|
| Pages not edited in 90 days | type = page and lastmodified < now("-90d") |
| Runbooks past a 90-day review | type = page and label = "runbook" and lastmodified < now("-90d") |
| One page tree, older than 180 days | type = page and ancestor = 123456 and lastmodified < now("-180d") |
| Stale, except records that should not expire | type = page and lastmodified < now("-365d") and label not in ("decision-record", "postmortem") |
| Before a fixed date | type = page and lastmodified < "2025-01-01" |
Four behaviors catch people out. Results include only pages the signed-in account can view, so a narrow account gives a partial list. Dates follow your configured time zone, which defaults to the Confluence server's. The order by lastmodified clause works in community-reported examples, but Atlassian's reference does not list the sortable fields, so drop the clause and sort the JSON if your site rejects it. And ancestor matches every descendant of a page, not only its direct children.
Which built-in Confluence tools show stale pages?
Confluence Cloud has five native routes, and each stops somewhere. As of December 2026:
| Tool | What it shows | Plan | Where it stops |
|---|---|---|---|
| Search results filters | Pages updated within a date range, filtered by space, contributor, type, label or parent page | Not stated in the docs | The documented date filter is a range of updated dates, so set its end date in the past to see old pages. |
| Space sidebar "Last updated" view | A flat list with the most recently edited pages first | Not stated in the docs | No filter or export. Old pages sit at the bottom. |
| Content manager (Space settings) | Last active (over 7 days, 1 month, 3 months or 6 months ago), Last updated range, labels, contributors, deactivated owners | Premium and Enterprise | One space at a time. Last active skips pages that have child pages. |
| Page insights and analytics | Views, unique viewers and engagement per page | Basic insights on Standard, Premium and Enterprise; full analytics on Premium and Enterprise | One page at a time. No cross-space list. |
| Confluence automation | A scheduled rule that runs a CQL query and acts on each result | All plans, with monthly step allowances | The branch caps results per run. Atlassian's pages list both 150 and 1,000, so test with your site and use REST for large sets. |
To open the content manager, select More actions (•••) next to the space name, then Space settings, then Content manager. Its Last active filter shows pages that have not been viewed, updated or commented on, so a page that people read daily but never edit does not appear. That is the right behavior for "unused" and the wrong one for "unchanged", which is why the CQL query on lastmodified is still worth running. Atlassian's content manager article lists the filters and bulk-action limits.
For views, Atlassian describes page insights and analytics: a byline with all-time unique viewers, and a Views tab with total views and unique viewers over a date range you choose. An engaged view is one of 20 seconds or longer.
How do you decide what to do with each stale page?
A list of old pages is the start of the work, not the end. Triage each page in this order:
- Check usage. A page with many recent viewers goes to the top of the review queue. A page nobody has opened in a year is an archive candidate.
- Check the owner. The content manager's deactivated owners filter lists pages owned by people who have left, and its Change owner action reassigns up to 100 items at a time.
- Check what the page depends on. Old pages collect dead links and drift behind the tickets they cite. See how to find broken links and how to catch docs drift against Jira.
- Choose an outcome. Update the page, archive it, delete it, or label it so future queries skip it.
Archiving is the safer default. Atlassian's archive documentation says archived items drop out of quick search and analytics, links to them keep working and show an Archived lozenge, and bulk archiving of up to 500 items is a Premium and Enterprise feature for space admins. To archive one page, choose More actions (•••) then Archive.
How do you stop pages going stale again?
Every stale page has the same root cause: nobody was responsible for it. Fix that with three habits.
- Give every page an owner and a status. Use labels such as
owner-platformandstatus-activeso queries can group by team. See a labeling scheme for engineering docs. - Schedule the query. In Confluence automation, add a Scheduled trigger, then a Related entities branch containing your CQL, then actions such as Add label, Send email or Add comment. Atlassian notes that the Scheduled trigger does not accept a query in Confluence, so the CQL lives in the Related entities branch. A rule that adds a
needs-reviewlabel and emails the owner turns the list into a queue. - Record reviews, not only edits. A line near the top such as "Last reviewed: 2026-12-02 by the platform team" lets reviewers confirm a page is still right without changing it, and lets you query on the label or text instead of the edit date.
Automation usage is metered in steps, and Atlassian's usage page says pay-as-you-go billing takes effect on 3 December 2026. Check your allowance before you schedule a rule that fires on many pages.
When is a Marketplace app worth adding?
Native tools cover finding old pages. They do not give you per-page review dates, a score you can track, or one view across every space. Several Marketplace apps fill part of that gap. Compare them on where the data is processed (on Atlassian infrastructure or on external servers), which scopes they request, whether they ever change pages without your approval, and whether they report a trend or only a list.
Folio for Confluence is one option for Confluence Cloud. Its Audit & fix tab scores a page tree from 0 to 100 with no AI credits, and Freshness is 30 of the 100 points: pages older than 90, 180 and 365 days are flagged as aging, outdated and stale, next to broken links, oversized pages and missing labels. "Since your last check" shows whether the score moved. It judges age by the last updated date only, not by views, and it does not archive pages or notify owners, so it complements the automation rule above rather than replacing it. See the Folio documentation.
FAQ
Does editing a page reset its stale date?
Yes. Any saved edit updates the last modified date, so fixing a typo takes a page out of an age-based query even if its content is still wrong. Pair the age query with a review label or a last reviewed line near the top of the page, and treat the review marker as the real signal.
Can I find stale pages on the Standard plan?
Yes. Atlassian lists the content manager as a Premium and Enterprise tool, but CQL through the REST API, the search results filters and the space Last updated view are not described as limited to those plans. Basic page insights are available on Standard, Premium and Enterprise.
Why does my CQL query return no results?
Check the space key first, and put it in quotes if it starts with a number. Then check that the account you query with can view the pages, because results only include content that account can see. Test the query with a date you know has matches, and remember that dates follow the configured time zone.
Should I archive or delete stale pages?
Archive when anyone might still link to the page, because links to archived pages keep working and show an Archived lozenge. Delete only when nothing links to it, since Atlassian warns that deleting content breaks the links that point to it. A deleted page can be restored from the space trash until it is purged.
How often should we run a stale page check?
Monthly for runbooks and on-call guides, quarterly for other engineering docs, and before you connect a space to Rovo or an AI coding agent. A scheduled automation rule makes the cadence automatic, so the check does not depend on someone remembering.