Stop deleting page versions one by one
Keep page and file versions by count or age, and purge the trash automatically in Confluence Cloud. Each rule shows the matching content before deletion is switched on. Set site defaults or custom rules per space, with the rule types Data Center teams already know.
- 58 current
- 57
- 56–49
- 48
Would delete now: 47 versions
- 47
- 46
- 45–2
- 1
Confluence Cloud keeps every version
A page that a script updates every night gains a version every night. A file replaced in place keeps every old copy, and each copy counts against the storage of the site. Confluence Cloud deletes old versions one per click in the page history, and pages, blog posts and files in the trash stay there until someone purges them.
Confluence Data Center has retention rules for page versions, attachment versions and the trash. In Cloud, the public request for them, CONFCLOUD-27701, was opened in January 2013 and is still gathering interest.
Three rules that delete, one that only reports
- Trash
- Purges pages, blog posts and files after a set number of days in the trash: 30 after installation.
- Page versions
- Keeps a number of previous versions of each page and blog post, 50 after installation, or the versions replaced within a set time. The current version always stays.
- Attachment versions
- The same for files, with 10 previous versions after installation. Old file versions are where most of the storage comes back.
- Unused attachments
- Lists the files with no detected references from pages, comments or cover pictures. It moves nothing by itself: an administrator picks the files that go to the trash.
The rules apply to the whole site, or a space gets rules of its own. Personal and archived spaces are left alone unless an administrator includes them. How the rules work
Nothing is deleted until you switch a rule on
After installation every rule that deletes is off. The app reads the site and reports what can be freed, and a rule starts deleting only after a Confluence administrator ticks Delete automatically in its card and confirms.
- A count first. Every rule shows what it would delete before you switch deletion on. Under each rule, “Would delete now” or “Would purge now” shows the pages, files, versions and storage, with examples.
- Checked again before each deletion. Right before the request the app reads the object from Confluence again and skips it on any doubt: a label it cannot read, a change since the last read, a space where it lacks the Admin role.
- Exemption label. The label
retention-exempton a page keeps the page and its files out of every rule, also in the trash. - Limits. At most 500 deletions per run and 5,000 per day, the values set at installation. Both can be changed.
- Pause all deletion. One button stops every deletion at once, a run under way included. The reports keep working.
- Journal. The Activity tab lists every deletion and every change of the settings, and keeps them for a year.
Deleted versions and purged content cannot be restored. They do not go to the trash.
What can be freed, per space
The Overview tab adds up three figures for the site: older versions of files, files in the trash, and files with no detected references. The Spaces tab shows what can be freed in each space. Older versions start as an estimate and become exact as the app measures the files where the estimate is largest. A quota per space marks the spaces close to it or over it, and blocks nothing.
Deleting old page versions shortens the history and frees almost no storage, because pages themselves take very little.
The data stays in Atlassian
Legroom runs on Atlassian Forge. Atlassian keeps its data in the same location as the Confluence site, and the app declares no external address, so the platform would block any request to one. The app stores an index of titles, sizes, dates and version numbers, its settings and a journal. It does not store the text of pages or the content of files, and Legroom Labs has no tool to read what it stores for a site. Data and security
What the app does not see
- Pages restricted to certain people are invisible to the app and left alone.
- For content that was already in the trash before installation, the period counts from the day the app first sees it, so it stays longer than the rule says, never shorter.
- Links to a file from Jira, from e-mail or from other sites are invisible. “Unused” means that no reference the app can see points to the file.
- Drafts are out of reach: the Confluence API shows apps no drafts.
Try Legroom
Legroom is on the Atlassian Marketplace as Legroom: Version and Trash Retention Rules for Confluence. Sites with up to 10 users use it free of charge; larger sites can try it free before buying. For product questions, write to support@legroomlabs.com.
Legroom Labs
Legroom Labs builds administration apps for Atlassian Cloud, in Warsaw, Poland. Legroom is its first app.
- Support: legroomlabs.com/support
- Security reports: security@legroomlabs.com
- Privacy: privacy@legroomlabs.com