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.

View on Atlassian Marketplace Read the first steps

The history of one page, with the Page versions rule set to keep 10 previous versions
  1. 58 current
  2. 57
  3. 56–49
  4. 48

Would delete now: 47 versions

  1. 47
  2. 46
  3. 45–2
  4. 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.

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

All limitations

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.