manage
delete-cr
Extended description
To uninstall a service, you must delete the custom resource for the service. The delete-cr
command deletes the custom resources that are associated
with the specified components.
- If you delete the custom resource, you can reinstall the service by running the
apply-cr
command. - If you want to delete the OLM
artifacts to completely remove the software from the cluster, run the
delete-olm-artifacts
command.
You can uninstall the components in a batch by specifying a comma-separated list of components, or you can uninstall components individually.
Syntax
cpd-cli manage delete-cr \
--cpd_instance_ns=<project-name> \
--components=<comma-separated-list-of-component-names> \
[--include_dependency=true|false] \
[--preview=true|false] \
[-v][-vv][-vvv]
Arguments
The delete-cr
command has no arguments.
Options
Option | Description |
---|---|
--components |
A comma-separated list of the components that you want to
uninstall.
|
--cpd_instance_ns |
The project (namespace) where IBM Cloud Pak® for Data is installed.
|
--include_dependency |
Specify whether you want to remove the dependencies for the specified
components.
|
--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 details, see Setting up installation environment variables.
- Uninstall the specified components in the specified project.
-
cpd-cli manage delete-cr \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS}
- Uninstall the specified components and their dependencies in the specified project.
-
cpd-cli manage delete-cr \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --include_dependency=true
- Uninstall the Db2 Warehouse component in the specified project.
-
cpd-cli manage delete-cr \ --components=db2wh \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}
- Preview the
oc
commands to uninstall the Db2 Warehouse component in the specified project -
cpd-cli manage delete-cr \ --components=db2wh \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --preview=true