Wiki

Clone wiki

confluence-purge-recyclebin-plugin / Home

passing.png

Welcome! Simple add-on to purge trash content (last modified) beyond defined retention time period.

  • Provides {space-trash-summary} Macro
  • Helps to keep confluence database and attachments clean and compact
  • Helps to save disk usage cost specially on cloud environments
  • Helps to avoid errors during XML export/import
  • REST API

Quick Start Document

Step-1

Go to Confluence Manage Add-ons > Configure

0_plugin_install.JPG

Step-2

Configure Retention time period (default is 90 days)

Step-3

Configure Job schedule

By default plugin purge job runs every Saturday at 3 AM.

0 0 3 ? * 7

REST URI

You can run rest api on-demand basis if you want to disable above plugin job schedule!

GET

http://localhost:8090/rest/purgerecyclebin/1.0/content/list/space/key/{spaceKey}

$ curl -u "user:pass" -XGET http://localhost:8090/rest/purgerecyclebin/1.0/content/list/space/key/DT
{"Total Contents":4448,"Total Pages":1770,"Total Page Versions":6608,"Total Attachments":2678}

DELETE

http://localhost:8090/rest/purgerecyclebin/1.0/content/purge/space/key/{spaceKey}/retention/days/{retentionDays}

$ curl -u "admin:secret" -XDELETE \
http://localhost:8090/rest/purgerecyclebin/1.0/content/purge/space/key/DT/retention/days/20
done
$

Updated