export-import
export purge
Purge all exports that are older than the specified retention time.
Syntax
cpd-cli export-import export purge <cpd-export-name> \
[--arch=<system-cpu-architecture>] \
[--cpdconfig=<cpd-configuration-location>] \
[--log-level=info|debug|warn|error|panic|trace] \
[--namespace=<namespace-name>] \
[--no-prompt] \
--profile=<profile-name> \
[--retention-time=<h,m,s>] \
[--verbose]
Arguments
Table 1: Command arguments
| Argument | Description |
|---|---|
<cpd-export-name> |
The name of the export to purge if it is older than the specified retention time. |
Options
Table 1: Command options
| Option | Description |
|---|---|
--arch |
The type of hardware the cluster
runs on.
|
--cpdconfig |
The IBM Software Hub
configuration location. For example,
$HOME/.cpd-cli/config.
|
|
|
Display command
help.
|
--log-level |
The command log
level.
|
|
|
The namespace name in which the
utility should operate.
|
--no-prompt |
Prompt for confirmation before
proceeding with the operation.
|
--profile |
The name of the profile that you
created to store information about an instance of IBM Software Hub and your credentials for the
instance.
|
--retention-time |
Specify how long to keep the data
('h' for hours, 'm' for minutes, 's' for seconds).
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Purge all exports that are older than the specified retention time.
-
cpd-cli export-import export purge <cpd-export-name> \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --retention-time=720h0m0s