manage
delete-olm-artifacts
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Remove the OLM artifacts for the specified components. The artifacts include catalog sources, cluster service versions, and operator subscriptions.
Extended description
delete-olm-artifacts command, ensure that you uninstall the software that depends on the artifacts by running
the delete-cr
command.delete-olm-artifacts command to completely
remove the software from the cluster. The delete-olm-artifacts removes the following OLM artifacts:- Catalog sources
- Cluster service versions
- Operator subscriptions
You can remove OLM artifacts for:
- A single component
- A set of components by specifying a comma-separated list of components
- All components in the operators project by specifying the
--delete_all_componentsoption
Syntax
cpd-cli manage delete-olm-artifacts \
--cpd_operator_ns=<project-name> \
[--components=<comma-separated-list-of-component-names>] \
[--delete_all_components=true|false] \
[--preview=true|false] \
[-vv][-vv][-vvv]
Arguments
The delete-olm-artifacts command has no arguments.
Options
| Option | Description |
|---|---|
--components |
A comma-separated list of the components for which you want to delete
the OLM artifacts.
|
--cpd_operator_ns |
The project for the operators for an instance of Cloud Pak for
Data.
|
--delete_all_components |
Delete the OLM artifacts for all of the components in the specified
project.
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
-v-vv-vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Table 1: Command options
Examples
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- Delete the OLM artifacts for components in the specified project
-
cpd-cli manage delete-olm-artifacts \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --delete_all_components=true - Delete the OLM artifacts for the Watson Query component
-
cpd-cli manage delete-olm-artifacts \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --components=dv - Preview the
occommands to delete the OLM artifacts for the Watson Query component -
cpd-cli manage delete-olm-artifacts \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --components=dv \ --preview=true