Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

GET

Info

Space Trash Purge Configuration

GEThttp://localhost:8090/rest/purgerecyclebin/1.0/content/list/space/key/utility/config?spaceKey={spaceKey}

Code Block
$ 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

/utility \
/config?spaceKey=DT

DELETEhttp://localhost:8090/rest/purgerecyclebin/1.0/utility/config?spaceKey={spaceKey}

Code Block
$ curl -u "admin:secret" -XDELETE \
http://localhost:8090/rest/purgerecyclebin/1.0/utility \
/config?spaceKey=DT

Info

Run Trash Purge for Space

POST http://localhost:8090/rest/purgerecyclebin/1.0/contentutility/purge/space/key/run/config?spaceKey={spaceKey}/retention/days/{retentionDays&dryRun={dryRun}

Code Block
$ curl -u "admin:secret" -XDELETE \
http://localhost:8090/rest/purgerecyclebin/1.0/content/purge/space/key/DT/retention/days/20
done
$/utility \
/run/config?spaceKey=DT

POST http://localhost:8090/rest/purgerecyclebin/1.0/utility/run/all/config?daysKeep={daysKeep}&dryRun={dryRun}

Info

Run Trash Purge for All Spaces

Code Block
$ curl -u "admin:secret" -XDELETE \
http://localhost:8090/rest/purgerecyclebin/1.0/utility \
/run/all/config?daysKeep=180