Common Content for Data Engineering
- Common Content for Data Engineering 10.2.2
- All Products
purgeversion {-d <all | time_date | num_day> | {-n <last_n_versions_to_keep> | -t <time_date | num_day>}} [-f <folder_name>] [-q <query_name>] [-o <output_file_name>] [-p (preview purged objects only)] [-b (verbose)] [-c (check deployment group reference)] [-s dbd_separator] [-k (log objects not purged)]
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.
After you purge object versions, you cannot retrieve them. To ensure that you can revert to past versions, avoid purging all versions of an object.
|
-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.
If you use the -d option, you purge all versions of the deleted objects. To keep recent versions of deleted objects and purge older versions, you can define a query that returns the deleted objects and then use the -q option with -n, -t, or both.
|
-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.
The -c option can have a negative impact on performance.
|
-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.
An object version does not purge when it belongs to a deployment group. When an object is a member of more than one deployment group, the reason lists the first deployment group that causes the object not to purge.
|