manage
delete-olm-artifacts
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.6 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 in a batch by specifying a comma-separated list of components, or you can remove OLM artifacts for individual components.
Syntax
cpd-cli manage delete-olm-artifacts \
[--components=<comma-separated-list-of-component-names>] \
[--cpd_operator_ns=<project-name>] \
[--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 |
Specialized installations only. The project (namespace) where the IBM
Cloud Pak for Data operators exist.
|
--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.
|
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 all of the components
-
- For an express installation, where all of the operators are installed in the same project (namespace)
-
cpd-cli manage delete-olm-artifacts - For a specialized installation, where the Cloud Pak for Data operators are installed in a separate project (namespace)
-
cpd-cli manage delete-olm-artifacts \ --cpd_operator_ns=${PROJECT_CPD_OPS}
- Delete the OLM artifacts for the Watson Query component
-
- For an express installation, where all of the operators are installed in the same project (namespace)
-
cpd-cli manage delete-olm-artifacts \ --components=dv - For a specialized installation, where the Cloud Pak for Data operators are installed in a separate project (namespace)
-
cpd-cli manage delete-olm-artifacts \ --components=dv \ --cpd_operator_ns=${PROJECT_CPD_OPS}
- Preview the
occommands to delete the OLM artifacts for the Watson Query component -
- For an express installation, where all of the operators are installed in the same project (namespace)
-
cpd-cli manage delete-olm-artifacts \ --components=dv \ --preview=true - For a specialized installation, where the Cloud Pak for Data operators are installed in a separate project (namespace)
-
cpd-cli manage delete-olm-artifacts \ --components=dv \ --cpd_operator_ns=${PROJECT_CPD_OPS} \ --preview=true