You can delete security policies if your account has been assigned at least one role that the policy's creator had at the time of the policy's creation. You also need rights to manage the corresponding types of policies in order to delete them.
Select the check box of the policy that you want to delete.
Click the Delete button above the table of policies.
In the window that opens, confirm the deletion.
If security policy configuration errors block Kaspersky Container Security and you cannot manage the solution using the Management Console, the security policies must be deleted manually.
To manually delete a policy and recover the solution:
Run the following command to remove the agents (kube-agent and node-agent) as applicable:
kubectl delete deployment kube-agent
kubectl delete daemonset node-agent
Delete all customer resources in the target cluster by running the following command:
kubectl get crd -o name | grep 'kcssecurityprofiles.securityprobe.kcs.com' | xargs kubectl delete
Restart all Kaspersky Container Security pods and access the Management Console.
Make the necessary changes to the security policies.