First steps
This page goes from a fresh installation to the first rule that deletes. Each step can be done on a different day: nothing is deleted before step 6.
Open Confluence settings → Legroom.
1. Wait for the first report
Until the app has read the whole site once, the message above the tabs says “The site has not been read yet”, and when reading will start, and then “The site is being read”. A license or pause message takes that place when needed. While figures are being counted, What can be freed shows a waiting message. The first read starts by itself within about 20 minutes of the installation; Read the site now, under Support tools on the Overview tab, starts it at once. When the run that read the site has ended, the block What can be freed on the Overview tab shows three figures:
- Older versions of files – what the Attachment versions rule would delete. The figure starts as an estimate (the current size of each file times the number of its older versions) and becomes exact as the app measures the files where the estimate is largest. The block says how much of it is measured.
- Files in the trash – what the Trash rule would purge.
- Files nothing refers to – the files listed on the Unused tab.
On a site where archived pages hold older versions of files, a line under the three figures says how much those versions take. It is not part of the sum: the version rules act on current pages only. Show spaces opens the Spaces tab, which names the spaces that hold them.
Next to each figure the block says what its rule does now. Set up opens the Rules tab while that rule deletes nothing; Review opens the Unused tab.
Below it the tab shows the largest spaces as a chart and one line on when the site was read and is read next. Support tools holds two buttons and a text to send with a support request: Read the site now reads what changed since the last read, and the rules that are due act in the same run; Read everything again reads the whole site again and sorts every file into used and unused from scratch. After that the time a file has been unused starts over, so no file can be moved to the trash until it has been unreferenced for the set period again.
2. Look at the spaces
The Spaces tab lists every space the app can see, with its size, what can be freed there (older versions of files, its trash and its unused files), its quota and the rules that act there.
Where archived pages hold older versions of files, the lines above the table say how much that is and name the spaces that hold the most. The amount counts in Size and not in Can be freed. Edit under the name of such a space shows the figure for the space, a link to its archived pages in Confluence and up to five archived pages whose files hold the most in older versions.
- Rules says Global rules, Own rules or No rules, with the reason. Personal and archived spaces have no rules unless an administrator gives them some.
- The line under the table says in how many spaces the app has the Admin role and names the spaces where it lacks it. The app deletes only where it has that role. It checks by itself once a day; Check now checks again at once.
- A quota can be set as a default for every space (Change next to the default quota) or
for one space (Edit under its name), typed as a size such as
20 GB. A quota is a mark: a space close to its quota (from 80%) or over it is flagged, and nothing is blocked. - The file above the table is the same report as a CSV file, one line per space, with the sizes in bytes. The browser saves it when its download button is pressed.
3. See what the rules would delete
Open the Rules tab. Each of the three rules that can delete is a card: what the rule does, in one sentence, the mark deleting or not deleting, and what it would delete now. After installation none of them deletes. Every rule shows what it would delete before you switch deletion on.
Change opens one card at a time. The values are typed into the sentence, such as “Purges what has been in the trash for more than 30 days”; a version rule keeps either “the last” number of versions or “the versions replaced within the last” number of days. When a field is left, the line under the fields counts again: “Would purge now” under the Trash rule, “Would delete now” under the version rules, with the number of pages or files, of versions and, where it can be counted, the storage, and a few examples. Save stores the values and Cancel puts back the stored ones; counting stores nothing.
The counts and the confirmation before deletion leave out spaces where the app lacks the Admin role, and name them under Not counted. They do not read exemption labels: a page or file counted here can still be skipped by the check right before deletion.
If the pause, a quota or another card changes while you type, the open card keeps what you typed. If the same card was saved elsewhere, Saved elsewhere explains that Save is refused; Cancel shows the stored values. A save that meets settings the page has not read yet says “The settings were changed after this page was loaded. Nothing is saved.” The typed values stay; check them and select Save again after the page has read the new settings.
The Unused attachments rule is on the Unused tab (step 8). It cannot delete: its three periods decide from when on a file can be picked there.
4. Protect what must stay
- Put the label
retention-exempton a page: every rule skips the page and its files, also while they are in the trash. The label on a single file protects that file. The name of the label can be changed in the Safety card of the Rules tab. - Exclude a whole space on the Spaces tab: select Edit under the name of the space, choose “No rules: nothing is deleted in this space” and select Save.
- With the switch “Space administrators may switch the rules off for their own space” on the Spaces tab, space administrators can exclude their space themselves, on the page of the app in the space settings, and let the rules apply again there; a space you excluded stays excluded until you change it. The switch acts at once, without a Save.
5. Set the limits
On the Rules tab:
- Change in the Safety card: “At most 500 deletions per run” and “At most 5,000 deletions per day”, the values after installation. Files moved to the trash by hand on the Unused tab count as well. Low limits for the first days keep the first effects small.
- Pause all deletion, at the top of the tab, stops every deletion at once after a confirmation, moving picked files to the trash included, and keeps the reports working. It is the button to use when something looks wrong. While deletion is paused the message above the tabs says so, and Resume deletion there asks for confirmation before lifting the pause. The Rules tab does not repeat the pause message or show another pause button while paused.
6. Switch deletion on for one rule
Select Change on one rule, tick Delete automatically and select Save. A question shows what the rule would delete now and repeats the limits. Nothing is saved until it is confirmed with Switch deletion on.
Making a rule that already deletes keep less also asks for confirmation, headed Delete more?.
The app looks at the rules once an hour. Before it deletes an object it reads the object from Confluence again, and it skips the object on any doubt: a label it cannot read, a change since the last read, a space where it lacks the Admin role.
Deleted versions and purged content cannot be restored. Starting with the Trash rule and a long period is the cautious choice: what it purges was already deleted by somebody.
7. Follow what was done
The Activity tab is the journal: every deletion the app made and every change of its settings, with the time, the object, the result and details such as the freed size. A settings entry names what changed with its old and new values; saving the same values writes no entry. Entries are kept for a year. The file above the table is the journal as a CSV file, which the browser saves when its download button is pressed.
8. Go through the unused files
The Unused tab lists the largest files that nothing refers to: not the page they are attached to, not a comment on it, not another page, and not as the cover picture of their page. Whether such a file is still needed is for a person to say; links from Jira, from e-mail and from other sites are invisible to the app.
The card Unused attachments at the top of the tab holds the three periods of the rule: nothing has referred to the file for 30 days, it was uploaded more than 90 days ago and nobody has viewed it for 90 days, after installation. Change opens them; the line “Past these periods now” counts the files past all three, leaving out the files of pages that keep files. A file can be picked once it is past the three periods; until then, and once the app has found the exemption label on it, it is shown as kept, with the reason. While deletion is paused no file can be picked. Select files and choose Move to the trash. Each file is checked once more right before it moves. A moved file stays in the trash of its space and can be restored there, until the Trash rule or an administrator purges it.
9. Give a space rules of its own
On the Spaces tab, select Edit under the name of a space and choose “Rules of its own, in place of the global rules”. The cards of its rules open below, with the same fields as on the Rules tab and the periods of the Unused attachments rule, and Save stores them together with the quota of the space. The rules of the space then take the place of the global rules there as a whole: a rule that does not delete in the space does not delete there, whatever the Rules tab says. The pause, the exemption label and the limits stay the same for every space.
The view of a space stores its values only while the settings of the space are as they were when it was opened. If they were changed meanwhile, for example by a space administrator who switched the rules off, the save is refused with a message and nothing is stored.
What space administrators see
Space settings → Integrations → Legroom shows the rules that apply to the space, the storage of its files against the quota, what the older versions of files on its archived pages take, with a link to those pages in Confluence, and, when the Confluence administrator allows it, the button Switch the rules off here.