# Can't delete "old" production env

**URL:** <https://community.forestadmin.com/t/cant-delete-old-production-env/3225>\
**Category:** Help me!\
**Created:** [September 5, 2021, 8:28pm UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225 "2021-09-05T20:28:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kexo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kexo/32/1271_2.png) [@kexo](https://community.forestadmin.com/u/kexo)\
**Post date:** [September 5, 2021, 8:28pm UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/1 "2021-09-05T20:28:55Z")

</div>

## Expected behavior

Being able to delete an environment. I created a new environment and pointed it to a new database (was doing a migration). I tried updating my current env but forest admin refused to take into account a change APPLICATION\_URL (it was failing to authenticate saying the redirect URL was not “the old one”). I decided to create a new env to speed up the process and delete the old one.

I can use the new env but can’t delete the old one.

## Actual behavior

422 Unprocessable entity on the “old” env I am trying to delete.

Based on this [Can't delete environments](https://community.forestadmin.com/t/cant-delete-environments/1149) I believe I might have created 2 production environment, which I believe should not be possible ?

How can I delete my “old” env ?

Thanks!

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [September 6, 2021, 9:04am UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/2 "2021-09-06T09:04:00Z")

</div>

Hi @kexo,

Can you please provide:

- your project name
- the name of the environment you want to drop

Regards,

---

<div class="post-metadata">

**Author:** ![kexo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kexo/32/1271_2.png) [@kexo](https://community.forestadmin.com/u/kexo)\
**Post date:** [September 6, 2021, 9:45am UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/3 "2021-09-06T09:45:05Z")

</div>

Hi @Sliman_Medini,

Thanks for the help. Send you a pm with the details.

Cheers.

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [September 7, 2021, 8:31am UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/4 "2021-09-07T08:31:03Z")

</div>

Hi @kexo,

You should be able to delete the environment you do not need anymore.

Regards

---

<div class="post-metadata">

**Author:** ![kexo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kexo/32/1271_2.png) [@kexo](https://community.forestadmin.com/u/kexo)\
**Post date:** [September 9, 2021, 2:20pm UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/5 "2021-09-09T14:20:09Z")

</div>

Thanks worked like a charm!

---

<div class="post-metadata">

**Author:** ![Cyril\_Bareme](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cyril_bareme/32/4388_2.png) [@Cyril\_Bareme](https://community.forestadmin.com/u/Cyril_Bareme)\
**Post date:** [April 29, 2022, 2:12pm UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/6 "2022-04-29T14:12:18Z")

</div>

Hello,  
I have the same problem.  
project name : Promo.dev  
env to delete : Oldp

Thanks

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [May 2, 2022, 8:41am UTC](https://community.forestadmin.com/t/cant-delete-old-production-env/3225/7 "2022-05-02T08:41:09Z")

</div>

Hello @Cyril_Bareme,

“Oldp” environment was deleted at `2022-05-02 07:21:41`

Regards
