Cannot delete default production environment

Expected behavior

I set a new production environment as default. I delete previous production environment. Finally, I rename the new production environment.

Actual behavior

I set a new production environment as default. I get an error message when I try to delete the previous production environment.

Failure Logs

“Environment deletion failed.”

Context

Please provide any relevant information about your setup.

  • Package Version: ^5.2.0
  • Express Version: ~4.16.3
  • Sequelize Version: ~5.15.1
  • Database Dialect: PostgresQL
  • Database Version: 10.6
  • Project Name: Inarix

Hi @Guillaume_Robin, and welcome to our community.

Seeing this thread, it seems related to the fact that we currently do not support removal of production environment.

Can you provide me the name of the environment you want to remove ?
I can manually set it to a “remote” environment (instead of a production one), so you should then be able to remove it.

Also, could you send me the HTTP request leading to the “Environment deletion failed.” error ? So I can be sure your issue is similar to the thread I mentionned ?

Thanks in advance

Hi @jeffladiray,

Thank you for your answer. The environment I want to remove is named “Production”.

The HTTP request was:

Request URL:

DELETE https://api.forestadmin.com/api/environments/48956

Seems to be similar.

Regards,

Guillaume

I just updated the environment as a remote one, you should be able to remove it.

Let me know if this did not work :pray:

1 Like

It worked! Thank you.