# Environment partially deleted?

**URL:** <https://community.forestadmin.com/t/environment-partially-deleted/1027>\
**Category:** Help me!\
**Created:** [September 24, 2020, 12:40am UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027 "2020-09-24T00:40:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thgaskell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/thgaskell/32/832_2.png) [@thgaskell](https://community.forestadmin.com/u/thgaskell)\
**Post date:** [September 24, 2020, 12:40am UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027/1 "2020-09-24T00:40:53Z")

</div>

Our team deleted a production environment through the dashboard, but I think it was only partially removed?  
After confirming the deletion we receive a 422 status code. The project still shows up in the dropdown select, and its environment details are still listed. However when we try to access it through the dashboard, it says that it does not exist.

Similarly through the cli tool, we can view the details of the environment, but when we try to delete it it errors out.

Is there any way to completely remove the environment from the dropdown and so that it is not listed from the cli?

## Expected behavior

The environment should be completely removed after deleting through the dashboard UI.

## Actual behavior

The environment is still shows up in the environment lists, and the details are still accessible. But any time we try to remove the environment, we receive a 422 status code.

## Failure Logs

```javascript
{"errors":[{"status":422,"detail":"Production environment cannot be removed","meta":{}}]}

```

## Context

- CLI Version: 1.7.1
- Environment ID: 57268

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [September 24, 2020, 8:41am UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027/2 "2020-09-24T08:41:38Z")

</div>

Hi @thgaskell and welcome in our community 🎊 ,

As the error message is saying you cannot remove a production environment 😉  
So there is no partially removed, this is the first check we do on our side before removing anything ^^

---

<div class="post-metadata">

**Author:** ![thgaskell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/thgaskell/32/832_2.png) [@thgaskell](https://community.forestadmin.com/u/thgaskell)\
**Post date:** [September 24, 2020, 7:58pm UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027/3 "2020-09-24T19:58:09Z")

</div>

Hi @anon62739609, thanks for the response!

We were not aware that production environments could not be removed when we set it up 🤭  
Would it be possible to change to change it to a development environment or remove it entirely?

Thanks again!

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [September 28, 2020, 9:36am UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027/4 "2020-09-28T09:36:43Z")

</div>

Hello @thgaskell,

I updated the mentioned environment type (ID: 57268), so you should be able to delete it on your side now.

---

<div class="post-metadata">

**Author:** ![thgaskell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/thgaskell/32/832_2.png) [@thgaskell](https://community.forestadmin.com/u/thgaskell)\
**Post date:** [September 28, 2020, 6:58pm UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027/5 "2020-09-28T18:58:01Z")

</div>

Thank you @anon79585656!

We were able to remove the environment without any issues.

I noticed that the environment was listed as a `remote` environment through the CLI. Is there any more documentation on this environment type? Previously all of the environment types were either `production` or `development`.

Thanks again!

---

<div class="post-metadata">

**Author:** ![rap2h](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/rap2h/32/25_2.png) [@rap2h](https://community.forestadmin.com/u/rap2h)\
**Post date:** [September 29, 2020, 8:48am UTC](https://community.forestadmin.com/t/environment-partially-deleted/1027/6 "2020-09-29T08:48:27Z")

</div>

Hi @thgaskell 👋

> I noticed that the environment was listed as a `remote` environment through the CLI. Is there any more documentation on this environment type?

There is a [lack of documentation](https://docs.forestadmin.com/documentation/how-tos/maintain/manage-your-forest-admin-programmatically) about the CLI, that should definitively be addressed. All environments are either _development_ (e.g localhost) or _remote_ (e.g not localhost). The _production_ is one kind remote, that is flagged as production.
