manage
uninstall-components
Extended description
To uninstall a service, you must delete the custom resource for the service. The uninstall-components command deletes the custom resources that are
associated with the specified components.
- Helm releases
- Kubernetes resources
- OLM artifacts, including:
- Catalog sources
- Cluster service versions
- Operator subscriptions
The command does not delete the cluster-scoped resources associated with the instance. If you
want to delete the cluster-scoped resources, you must run the cpd-cli
manage
delete-cluster-scoped-resources command.
- A single component associated with the instance
- A group of components associated with the instance (by specifying a comma-separated list of components)
- All of the components associated with an instance (by specifying the
--delete_all_componentsoption)
Syntax
cpd-cli manage uninstall-components \
--instance-name=<project-name> \
[--components=<comma-separated-list-of-component-names>] \
[--delete_all_components=true|false] \
[--include_dependency=true|false] \
[--preview=true|false]
Arguments
The uninstall-components command has no arguments.
Options
| Option | Description |
|---|---|
--components |
A comma-separated list of the components that you want to
uninstall.
|
--delete_all_components |
Delete the Kubernetes, Helm, and OLM resources for all of the
components in the specified project.
|
--include_dependency |
Specify whether you want to remove the dependencies for the specified
components.
|
--instance_ns |
The project (namespace) where IBM Software Hub is
installed.
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.
- Uninstall the specified components in the specified project.
-
cpd-cli manage uninstall-components \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} - Uninstall the specified components and their dependencies in the specified project.
-
cpd-cli manage uninstall-components \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --include_dependency=true - Uninstall the Db2 Warehouse component in the specified project.
-
cpd-cli manage uninstall-components \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=db2wh - Preview the
occommands to uninstall the Db2 Warehouse component in the specified project -
cpd-cli manage uninstall-components \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=db2wh \ --preview=true