# How to delete Network Zone in Managed cluster

**URL:** <https://community.dynatrace.com/t/how-to-delete-network-zone-in-managed-cluster/39575>\
**Category:** Troubleshooting\
**Tags:** dynatrace-managed, managed-cluster, network-zones\
**Created:** [May 3, 2023, 1:45pm UTC](https://community.dynatrace.com/t/how-to-delete-network-zone-in-managed-cluster/39575 "2023-05-03T13:45:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhushangholap](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bhushangholap](https://community.dynatrace.com/u/bhushangholap)\
**Post date:** [May 3, 2023, 1:45pm UTC](https://community.dynatrace.com/t/how-to-delete-network-zone-in-managed-cluster/39575/1 "2023-05-03T13:45:01Z")

</div>

If you have Network Zones in managed cluster that are not using any ActiveGate’s or OneAgent’s and if you would like to delete those you can follow below steps :

- Network Zone with no ActiveGate or OneAgent looks like below :

- If you use [Network Zone delete API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/network-zones/del-network-zone), you might get

- Or if you try cluster API you might get below error :

- On Managed clusters Network Zones are cluster wide hence they can not be deleted at tenant/environment level. They have to be deleted at cluster level using Cluster API.

- To get an API-Token with the ServiceProviderAPI scope, go into the CMC of the Cluster under Settings then to API Tokens. Click on Generate Token under&nbsp; **Cluster Token** , give it a name and enable&nbsp; **ServiceProviderAPI** &nbsp;for the access scope.

- The new generated token should now be able to authenticate for the deletion REST API endpoint for Network Zones. Which you can use to delete the network zone.

- You can also refer [cluster-configuration-token](https://www.dynatrace.com/support/help/managed-cluster/cluster-api/basics/cluster-api-authentication?_ga=2.17564153.1121379434.1683015919-70278990.1656946581#cluster-configuration-token)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 12, 2023, 7:15pm UTC](https://community.dynatrace.com/t/how-to-delete-network-zone-in-managed-cluster/39575/2 "2023-05-12T19:15:13Z")

</div>

[@bhushangholap](https://community.dynatrace.com/user/45861)&nbsp;Thank you for sharing this for all out Managed customers!
