# A Kyverno DeletingPolicy for ConfigMaps never deletes anything, and the cleanup controller logs 'skipping resource due to access restrictions'. What is missing?

Kyverno, Medium (Advanced), Security. https://k8wiz.com/uquiz/a-kyverno-deletingpolicy-for-configmaps-never-deletes-anything-and-the-cleanup-controller-logs-skipping-resource-due-to-access-r

- A. List and delete RBAC for the cleanup controller's service account
- B. A PolicyException that lets the cleanup controller delete ConfigMaps
- C. An operations entry of DELETE in the policy's resourceRules
- D. A webhook failurePolicy of Ignore on the cleanup controller

**Answer:** List and delete RBAC for the cleanup controller's service account

**Explanation:** The cleanup controller lists and deletes resources with its own service account, and a forbidden error on the list is treated as permanent, so it skips that resource type and only logs the message. Grant the verbs in a ClusterRole labeled rbac.kyverno.io/aggregate-to-cleanup-controller: "true", which the chart's aggregated role picks up. Operations are not checked during a deletion scan, so adding DELETE changes nothing.
