manage delete-rsi-patch

Delete RSI patches that are defined in the specified project.

Extended description

Delete RSI patches that are defined in the specified project.

You must be a cluster administrator or project administrator to run this command.

You can either:
  • Delete all of the patches in the project
  • Delete a specific patch in the project

Before you delete an RSI patch, it is recommended that you set all active patches to inactive without the --skip_apply option so that the pods in the project are reverted to the original specification. For details, see create-rsi-patch.

Syntax

cpd-cli manage delete-rsi-patch \
--cpd_instance_ns=<project-name> \
[--patch_name=<patch-name>] \
[--all]

Arguments

The delete-rsi-patch command has no arguments.

Options

Option Description
--all Delete all of the RSI patches in the specified project.
Status
Optional. If you don't specify this option, you must specify the --patch_name option.
Syntax
--all
Default value
Not applicable.
Valid values
Not applicable.
--cpd_instance_ns The OpenShift® project where the IBM Cloud Pak® for Data control plane and services are installed.
Status
Required.
Syntax
--cpd_instance_ns=<project-name>
Default value
No default. User-defined.
Valid values
The name of the project where you want to delete the specified RSI patches. Cloud Pak for Data must be installed in this project.
--patch_name The name of the RSI patch that you want to delete.
Status
Optional. If you don't specify this option, you must specify the --all option.
Syntax
--patch_name=<patch-name>
Default value
No default. User defined.
Valid values
The name of an RSI patch in the specified project.

Examples

Note: The following example 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.

Delete all of the RSI patches in the project where Cloud Pak for Data is installed
cpd-cli manage delete-rsi-patch \
--cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
--all
Delete the patch-name-1 patch in the project where Cloud Pak for Data is installed
cpd-cli manage delete-rsi-patch \
--cpd_instance_ns=${PROJECT_CPD_INSTANCE} \
--patch_name=patch-name-1