# A Kyverno DeletingPolicy matches ReplicaSets whose spec.replicas is 0. RBAC is in place, yet on a default Helm install nothing is ever deleted. Why?

Kyverno, Hard (Expert), Policies. https://k8wiz.com/uquiz/a-kyverno-deletingpolicy-matches-replicasets-whose-specreplicas-is-0-rbac-is-in-place-yet-on-a-default-helm-install-nothing-is-e

- A. The default resourceFilters in the Kyverno ConfigMap skip all ReplicaSets
- B. ReplicaSets owned by a Deployment can only be removed with Foreground
- C. A DeletingPolicy can only target kinds in the core API group
- D. The cleanup controller only deletes resources that carry a TTL label

**Answer:** The default resourceFilters in the Kyverno ConfigMap skip all ReplicaSets

**Explanation:** The cleanup controller checks every listed resource against resourceFilters and skips matches. The chart's default list includes [ReplicaSet,*,*], along with everything in kube-system, kube-public and kube-node-lease, so such a policy is silently inert until the filter is changed. DeletingPolicy can target any group, including apps, as long as the controller has RBAC for it.
