removeversions [-<option> . . .]
Removes object versions.
Available since the version 2.0.
This command is also available in cmd4 as removeversions.
Options
[-ids] <comma-separated database ids>
List of object id(s)
-from <date/time>
Consider only versions after the specified date time
-to <date/time>
Consider only versions before the specified date time
-codes <comma-separated list of version codes>
Consider only versions with the specified codes. If not specified consider only 'Normal' versions.
-fromversion <integer>
Start removing version from the specified version. With a positive value the version count will start from the oldest version. With a negative value the version count will start from the newest version. The given version is included and will be removed.
-limitremove <integer>
Limit the number of versions that will be removed.
-conditions
Either a GNQuery search expression or the name of the file or of the search configuration containing the search conditions - used to select the objects to remove versions for. Available since the version 2.0.