# How to release all environments

**URL:** <https://openziti.discourse.group/t/how-to-release-all-environments/4521>\
**Category:** General Questions\
**Created:** [May 13, 2025, 10:52pm UTC](https://openziti.discourse.group/t/how-to-release-all-environments/4521 "2025-05-13T22:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-chen](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/ben-chen/32/3479_2.png) [@ben-chen](https://openziti.discourse.group/u/ben-chen)\
**Post date:** [May 13, 2025, 10:52pm UTC](https://openziti.discourse.group/t/how-to-release-all-environments/4521/1 "2025-05-13T22:52:27Z")

</div>

Is there a way to release all environments? I have 92 shares that are meant to be ephemeral (I'm running them in flyte pods) and I think I ran into the limit trying to enable. I don't really want to go through all of them and delete through the GUI.

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/e/e97696e9157fc3195b4710661068fac60f1bafdc.png)

When running `zrok enable **** `:

```auto
⡿ the zrok service returned an error: [POST /enable][401] enableUnauthorized

there was a problem enabling your environment!

you are trying to use the zrok service at: https://api-v1.zrok.io

you can change your zrok service endpoint using this command:

$ zrok config set apiEndpoint <newEndpoint>

(where newEndpoint is something like: https://some.zrok.io)

```

---

<div class="post-metadata">

**Author:** ![michael.quigley](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/michael.quigley/32/1123_2.png) [@michael.quigley](https://openziti.discourse.group/u/michael.quigley)\
**Post date:** [May 14, 2025, 1:16am UTC](https://openziti.discourse.group/t/how-to-release-all-environments/4521/2 "2025-05-14T01:16:46Z")

</div>

Unfortunately there isn't a "delete all environments" API call. The only alternative is to either click through it through the UI, or call the API endpoint using a script.
