export-import
schedule-export purge
Purge IBM® Cloud Pak for Data schedule exports that are older than the specified retention time.
Syntax
cpd-cli export-import schedule-export purge \
[--arch=<system-cpu-architecture>] \
[--cpdconfig=<cpd-configuration-location>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--no-prompt] \
--profile=<cpd-profile-name> \
[--retention-time=<h,m,s>] \
[--verbose]
Arguments
The command has no arguments.
Options
Table 1: Command options
Option | Description |
---|---|
--arch |
Provide the CPU architecture
(hardware) of the cluster.
|
--cpdconfig |
The Cloud Pak for Data
configuration location. For example,
$HOME/.cpd-cli/config.
|
|
Display command
help.
|
--log-level |
The command log
level.
|
--namespace |
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 Cloud Pak for Data 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 IBM Cloud Pak for Data schedule exports that are older than the specified retention time.
-
cpd-cli export-import schedule-export purge \ --arch=${CPU_ARCH} \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --no-prompt \ --retention-time=720h0m0s