# Stuck legacy environment throwing 500 error on CLI

**URL:** <https://openziti.discourse.group/t/stuck-legacy-environment-throwing-500-error-on-cli/6072>\
**Category:** zrok\
**Created:** [September 10, 2026, 3:34am UTC](https://openziti.discourse.group/t/stuck-legacy-environment-throwing-500-error-on-cli/6072 "2026-09-10T03:34:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qatester](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@qatester](https://openziti.discourse.group/u/qatester)\
**Post date:** [September 10, 2026, 3:34am UTC](https://openziti.discourse.group/t/stuck-legacy-environment-throwing-500-error-on-cli/6072/1 "2026-09-10T03:34:45Z")

</div>

Hello, I have an old environment from a deleted VM that is stuck. I managed to fetch its environment `zId` using `zrok2 list environments --json`, but running the `delete environment` command returns a 500 internal server error.The stuck environment ID is: `5-aZ3oicjK `.I'm also not able to delete it from the console (An error occured releasing your environment `5-aZ3oicjK.` I want to keep my email private, so I will happily send my account email address via a DM to whichever administrator can help prune this database deadlock on the backend. Thank you!
