Option | Argument | Description |
---|---|---|
-d | all time_date num_day | Required if you do not use -n or -t. Purges all versions of checked-in deleted objects. You can specify all for all deleted objects, or you can specify an end time to purge all versions of objects that were deleted before the end time. You specify the end time in MM/DD/YYYY HH24:MI:SS format, MM/DD/YYYY format, or as the number of days before the current date. If you specify a number of days, the value must be an integer greater than 0. |
-n | last_n_versions_to_keep | Required if you do not use -d or -t. Number of latest checked-in object versions to keep for an active object. The value must be an integer greater than 0. For example, enter 6 to purge all versions except the last six checked-in versions. If the object is checked out, you also retain the checked-out version. |
-t | purge_cutoff_time | Required if you do not use -d or -n. Cutoff time for purging object versions of active objects. Purges versions that were checked in before the cutoff time. You can specify the purge cutoff time in MM/DD/YYYY HH24:MI:SS format, MM/DD/YYYY format, or as a number of days before the current date. If you specify a number of days, the value must be an integer greater than 0. When you use the ‑t option, you retain the latest checked-in version even if it was checked in after the purge cutoff time. |
-f | folder_name | Optional. Folder from which object versions are purged. If you do not specify a folder, you purge object versions from all folders in the repository. |
-q | query_name | Optional. Query used to purge object versions from a particular query result set. |
-o | outputfile_name | Optional. Output file for saving information about purged object versions. |
-p | - | Optional. Previews the PurgeVersion command. pmrep displays the purge results without actually purging object versions. |
-b | - | Optional. Displays or saves purge information in verbose mode. Verbose mode provides detailed information about object versions, including repository name, folder name, version number, and status. You can use the -b option with -o and -p. |
-c | - | Optional. Checks deployment groups in the repository for references to the object versions returned in a purge preview. If a purge preview contains an object version in a deployment group, pmrep displays a warning. When you use the -c option with the -p option, the command lists objects that purge, then lists which object versions are contained in deployment groups. When you use the -c option without the -p option, the command does not purge object versions that are part of deployment groups. |
-s | dbd_separator | Optional. If an ODBC source has a period (.) in the name, define a different separator character when you define the source object. For example, instead of database_name.source_name, define the source object as database_name\source_name, and define the dbd_separator as backslash (\). |
-k | - | Optional. Lists all the object names and versions that do not purge although they match the purge criteria. The -k option also lists the reason that the object versions do not purge. For example, an object version does not purge if you do not have sufficient privileges to purge the object. |