kubernetes update 1.22 ->1.23 Helm Error

I was in the progress of updating my cluster and in version 1.23 we have breaking changes.
What I did not know was that helm saves the latest deployed version in secret.

So I updated the cluster to version 1.23 and started getting helm errors.
And it does not matter if I delete the resources in the cluster. The issue is that helm has saved the last deployment with a API version that with the new k8s version is no longer supported.

So I tried to manually delete all the different resources but with no success.
In the end, I started to delete the helm secrets and then applied the helm again using update –install

Remove the old helm deployments saved in secrets
kubectl get secret -n namspaec | grep sh.helm.release.v1 | awk {'print $1'} | xargs -i kubectl delete secret -n namespace {}

Apply helm

helm upgrade –install {Rest of your helm }

The errors

Error: UPGRADE FAILED: current release manifest contains removed kubernetes api(s) for this kubernetes version and it is therefore unable to build the kubernetes objects for performing the diff. error from kubernetes: unable to recognize "": no matches for kind "Ingress" in version "extensions/v1beta1"