# Dynatrace Pods Still Running After Namespace Deletion? Here’s What You Need to Know

**URL:** <https://community.dynatrace.com/t/dynatrace-pods-still-running-after-namespace-deletion-here-s-what-you-need-to-know/52207>\
**Category:** Dynatrace Tips\
**Tags:** google-cloud-platform, dynatrace-operator, tips-and-tricks, kubernetes\
**Created:** [June 23, 2025, 4:59pm UTC](https://community.dynatrace.com/t/dynatrace-pods-still-running-after-namespace-deletion-here-s-what-you-need-to-know/52207 "2025-06-23T16:59:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![theharithsa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theharithsa/32/16236_2.png) [@theharithsa](https://community.dynatrace.com/u/theharithsa)\
**Post date:** [June 23, 2025, 4:59pm UTC](https://community.dynatrace.com/t/dynatrace-pods-still-running-after-namespace-deletion-here-s-what-you-need-to-know/52207/1 "2025-06-23T16:59:22Z")

</div>

We’ve seen multiple customers face issues where **Dynatrace Operator pods continue to run even after the** dynatrace **namespace has been deleted** , especially in **Google Cloud (GCP) Kubernetes clusters**.

This typically happens because **Dynatrace installs several cluster-scoped resources** (like CRDs, webhook configurations, ClusterRoles, etc.) that are **not automatically removed when a namespace is deleted**. As a result, leftover components like validating webhooks and CRDs can continue to function and even interfere with new workloads — causing webhook errors or orphaned pods.

To ensure a **complete and clean uninstallation of the Dynatrace Operator** and all related components, here’s a checklist you can follow.

## 1. Confirm if Dynatrace was installed via Helm or manually via kubectl.

- If installed via Helm:  
Run:

```markup
helm uninstall dynatrace-operator -n dynatrace​

```

Wait for the uninstall to complete, then run:

```markup
kubectl delete namespace dynatrace​

```

## 2. If manually installed or namespace already deleted:

Run the following to check for cluster-wide resources:

```markup
- kubectl get crd | grep dynatrace
- kubectl get clusterrole | grep dynatrace
- kubectl get clusterrolebinding | grep dynatrace
- kubectl get mutatingwebhookconfigurations | grep dynatrace
- kubectl get validatingwebhookconfigurations | grep dynatrace

```

Delete residual Dynatrace resources using:

```markup
- kubectl delete crd dynakubes.dynatrace.com
- kubectl delete clusterrole dynatrace-operator
- kubectl delete clusterrolebinding dynatrace-operator
- kubectl delete mutatingwebhookconfiguration dynatrace-operator
- kubectl delete validatingwebhookconfiguration dynatrace-operator

```

Check for any Dynatrace-related pods still running (outside namespace):

```markup
- kubectl get pods --all-namespaces | grep dynatrace

```

### 

3. If Webhook errors persist during pod creation:  
- Ensure webhook configurations are fully deleted.

### 4. Optional: Reboot GKE nodes if operator pods are stuck in Terminating.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [June 25, 2025, 12:46pm UTC](https://community.dynatrace.com/t/dynatrace-pods-still-running-after-namespace-deletion-here-s-what-you-need-to-know/52207/2 "2025-06-25T12:46:27Z")

</div>

Very useful solution 🙂 Thank you!
