manage
delete-olm-artifacts
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 IBM Software
Hub.
|
--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.
|
Examples
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.
- 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 Data Virtualization 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 Data Virtualization component -
cpd-cli manage delete-olm-artifacts \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --components=dv \ --preview=true