oadp uninstall

Install the Cloud Pak for Data Openshift APIs for Data Protection (OADP) backup REST service (cdpbr-api).

Syntax

cpd-cli oadp uninstall \
--component=<cpd-cli-oadp-component> \
--foundation-namespace=<cpd-foundational-services-namespace> \
--operators-namespace=<cpd-service-operators-namespace> \
[--cpd-namespace=<cpd-control-plane-namespace>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--no-prompt] \
[--revoke-image-puller-role=--revoke-image-puller-role] \
[--verbose]

Arguments

The uninstall command has no arguments.

Options

Option Description
--component Specify the cpd-cli oadp component to uninstall.
Status
Optional.
Syntax
--component=<cpd-cli-oadp-component>
Default value
No default.
Valid values
A valid cpd-cli oadp component name.
--cpd-namespace The Cloud Pak for Data control plane namespace in which the utility operates.
Status
Optional.
Syntax
--cpd-namespace=${PROJECT_CPD_INSTANCE}
Default value
${PROJECT_CPD_INSTANCE}
Valid values
A valid Cloud Pak for Data control plane namespace.
--foundation-namespace Specify the Cloud Pak for Data foundational services namespace.
Status
Required.
Syntax
--foundation-namespace=<cpd-foundational-services-namespace>
Default value
ibm-common-services
Valid values
ibm-common-services

--help

-h

Display command help.
Status
Optional.
Syntax
--help
Default value
No default.
Valid values
Not applicable.
--log-level The command log level.
Status
Optional.
Syntax
--log-level=info|debug|warn|error|panic
Default value
info
Valid values
debug
Debug messages are written to the log.
error
Error messages are written to the log.
info
Informative messages are written to the log.
panic
Panic messages are written to the log.
warn
Warning messages are written to the log.

--namespace

-n

The namespace name in which the utility should operate.
Status
Optional.
Syntax
--namespace=<namespace-name>
Default value
oadp-operator
Valid values
A valid project (namespace) name.
--operators-namespace Specify the Cloud Pak for Data Operators namespace.
Status
Required.
Syntax
--operators-namespace=<cpd-service-operators-namespace>
Default value
ibm-common-services
Valid values
A valid Cloud Pak for Data Operators namespace.
--revoke-image-puller-role Revokes permission for Cloud Pak for Data namespaces to pull images from the OADP/Velero namespace. The option is for OADP air-gapped installations.
Status
Optional.
Syntax
--revoke-image-puller-role=true|false
Default value
true
Valid values
true
Revokes permission for Cloud Pak for Data namespaces to pull images from the OADP/Velero namespace.
false
Does not revoke permission for Cloud Pak for Data namespaces to pull images from the OADP/Velero namespace.
--verbose Logs include more detailed messages.
Status
Optional.
Syntax
--verbose
Default value
No default.
Valid values
Not applicable.

Examples

Note: The following examples uses the recommended installation environment variables.

Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.

Uninstall the following services for IBM Spectrum® Protect Plus integration.

Uninstall the cpdbr-hooks service from the Cloud Pak for Data control plane namespace.
cpd-cli oadp uninstall \
--cpd-namespace=${PROJECT_CPD_INSTANCE} \
--component=cpdbr-hooks \
--log-level=warn
Uninstall the cpdbr-ops-hooks service from the Cloud Pak for Data operators namespace.
cpd-cli oadp uninstall \
--component=cpdbr-ops-hooks \
--foundation-namespace=ibm-common-services \
--operators-namespace=ibm-common-services \
--log-level=warn