Uninstalling the Compliance Operator¶
You can remove the OpenShift Compliance Operator from your cluster by using the OpenShift Container Platform web console or the OpenShift CLI (oc).
Uninstalling the OpenShift Compliance Operator from OpenShift Container Platform using the web console¶
To remove the Compliance Operator, you must first delete the objects in the namespace. After the objects are removed, you can remove the Operator and its namespace by deleting the openshift-compliance project.
Prerequisites
- Access to an OpenShift Container Platform cluster by using an account with
cluster-adminpermissions. - The OpenShift Compliance Operator is installed.
Procedure
-
Go to the Ecosystem → Installed Operators → Compliance Operator page.
- Click All instances.
- In All namespaces, click the Options menu
and delete all ScanSettingBinding, ComplainceSuite, ComplianceScan, and ProfileBundle objects.
-
Switch to the Administration → Ecosystem → Installed Operators page.
-
Click the Options menu
on the Compliance Operator entry and select Uninstall Operator. -
Switch to the Home → Projects page.
-
Search for 'compliance'.
-
Click the Options menu
next to the openshift-compliance project, and select Delete Project.- Confirm the deletion by typing
openshift-compliancein the dialog box, and click Delete.
- Confirm the deletion by typing
Uninstalling the OpenShift Compliance Operator from OpenShift Container Platform using the CLI¶
To remove the Compliance Operator, you must first delete the objects in the namespace. After the objects are removed, you can remove the Operator and its namespace by deleting the openshift-compliance project.
Prerequisites
- Access to an OpenShift Container Platform cluster by using an account with
cluster-adminpermissions. - The OpenShift Compliance Operator is installed.
Procedure
-
Delete all objects in the namespace.
-
Delete the
ScanSettingBindingobjects: -
Delete the
ScanSettingobjects: -
Delete the
ComplianceSuiteobjects: -
Delete the
ComplianceScanobjects: -
Delete the
ProfileBundleobjects:
-
-
Delete the Subscription object:
-
Delete the CSV object:
-
Delete the project:
Verification
-
Confirm the namespace is deleted:
Additional resources