Purge File Versions from the Command Line

Purge file versions using the command line.

  1. Make sure no users are connected to the vault.
  2. Run Connectivity.ADMSConsole.exe from a command line with the following switches:

Command

Details

-Opurge

The operation being performed (required). If this operation is executed without any other switches, the task will run based on revision and lifecycle rules without affecting uncontrolled files.

-Nvault name

The name of the vault to be purged (required).

-Stop

Halts the purge task while it is running.

-Normal

Sets the purge task to a normal system priority.

-KEEPVERSnumberX

Keep the latest X number of versions (optional). The value can range between 1 and 99. The default value is 1.

-MINAGEnumberX

Purge versions older than X number of days (optional). The value can range between 0 and 180. The default value is 0.

-EXCLCMTcomment

Purge versions that do not contain the specified comment (optional). The default value is an empty string, "".

-UNCONTROLLED

Purges versions based on default settings and the revision and lifecycle rules. If used in conjunction with -KEEPVERS, -MINAGE, or -EXCLMT, then the system purges uncontrolled files as well as files based on revision and lifecycle rules.

-VUusername

Vault administrator account user name (required).

-VPpassword

Vault administrator account password (required).

Example

Connectivity.ADMSConsole.exe -Opurge -NVault -KEEPVERS3 -MINAGE30 -EXCLCMT"Do not purge" -VUadministrator -VPadmin