Remove environments, but workflows prevent that

  1. My goal:

We used to have only 1 staging environment, but have several more now.

New ones are called: dev-1, test-1, test-2, accept-1, accept-2.
They correlate to actual system environments, each with their own APIs and DBs.

I would like to delete the old environments from Retool (Because I cannot rename them for some reason) and clean up the environments list in Retool

  1. Issue:

The old "staging", "acceptance" and another one I cannot disclose environments all have 2 resources attached, which I cannot find which they are.

I cannot delete the environment is there are still resources attached (Which makes sense)

  1. Steps I've taken to troubleshoot:

I suspect the two workflows we have are offenders of holding on to the environments.

How do I delete the environments from the workflows?
Or see what environments they are connected to?

What other troubleshooting options are there? How can I find our definitively what resources are connected to the environment? Like the "usage" list in several other spots in Retool.

Because I suspect the workflows (Just because the count matches the number and I've double/triple checked everything else)

  1. Additional info: (Cloud or Self-hosted, Screenshots)

Cloud hosted.

Hi @it-duurzaaminvesteren,

I agree there should be an easier way to command search for the queries that resources being used in an environment.

For removing environments from a workflow query block, you should be able to edit the resource from clicking the 'Edit' button and then removing it.

I wasn't able to find a feature request for a way to search which resources are tied to a env along with their queries but I can make a request for that right now :+1:

Hi @it-duurzaaminvesteren,

Were you able to remove the resources or workflows that were holding on to the env?