Publication state cleanup

When a publication is performed, KCM Repository automatically removes all saved publication states that have been superseded before the configured threshold.

You may need to perform a cleanup of old saved publication states without creating a new publication. For example, when the system becomes inactive, you can manually trigger the cleanup. For that, use the PurgePublications.exe command-line tool that resides in: <deploy root>\KCM\Programs\<version>\Management\Instance.

Parameters

The tool has the following parameters:

Parameter Required / Optional Description
Instance!Number Required KCM instance number the tool should operate on.

For Docker, it is always set to 1.

Repository!User Optional

Only required when the LDAP mode is disabled.

User account in KCM Designer. This account needs no special authorization.
Repository!Password Optional

Only required when the LDAP mode is disabled.

Password for the KCM Designer user account.
Repository!Token

Optional

Only required when the LDAP mode is enabled.

Logon token generated with KCM Designer. For more information, see "Log in to KCM Designer and KCM Designer for Windows" in KCM Designer Help.
Action!Perform Optional If set to True, the cleanup is performed.

If omitted or set to another value, the actions that the cleanup would perform are shown, but not executed.

Example 1: LDAP mode is disabled

PurgePublications.exe Instance!Number=1 
Repository!User=administrator Repository!Password=****** 
Action!Perform=true

Example 2: LDAP mode is enabled

PurgePublications.exe Instance!Number=1 
Repository!Token=1n2Z58JX
Action!Perform=true