$ oc delete MutatingWebhookConfiguration spo-mutating-webhook-configuration
You can remove the Security Profiles Operator from your cluster by using the OpenShift Container Platform web console.
To remove the Security Profiles Operator, you must first delete the seccomp
and SELinux profiles. After the profiles are removed, you can then remove the Operator and its namespace by deleting the openshift-security-profiles project.
Access to an OpenShift Container Platform cluster that uses an account with cluster-admin
permissions.
The Security Profiles Operator is installed.
To remove the Security Profiles Operator by using the OpenShift Container Platform web console:
Navigate to the Operators → Installed Operators page.
Delete all seccomp
profiles, SELinux profiles, and webhook configurations.
Switch to the Administration → Operators → Installed Operators page.
Click the Options menu on the Security Profiles Operator entry and select Uninstall Operator.
Switch to the Home → Projects page.
Search for security profiles
.
Click the Options menu next to the openshift-security-profiles project, and select Delete Project.
Confirm the deletion by typing openshift-security-profiles
in the dialog box, and click Delete.
Delete the MutatingWebhookConfiguration
object by running the following command:
$ oc delete MutatingWebhookConfiguration spo-mutating-webhook-configuration