In a standard CQ installation, you can run the version purge manually OR explicitly when new versions of assets are created. You can also schedule version purge to run at specified time.
Using cron job, schedule the curl commands [1], and then remove the progress file. The following list explains the various input parameters.
For more details, click here.
An example of curl command to purge everything except last five versions for the tree/content/geometrixx/en/test is [2] & [3].
[1]
curl -u <userid>:<password> -f -o progress.txt -d "cmd=<cmd>&maxdays=<maxdays>&maxversions=<maxversions>&path=<path>&recursive=<recursive>" "http://<host>:<port>/etc/versioning/purge.html"
[2]
curl -u admin:admin -f -o progress.txt -d "cmd=purge&maxdays=0&maxversions=5&path=/content/geometrixx/en/test&recursive=true" "http://localhost:4502/etc/versioning/purge.html"
[3]
rm progress.txt
Bejelentkezés a fiókba