Environment Got Deleted (Solved)

I am not sure what happened but suddenly when I remove a host that I had not containers it removed the default environment.

Is there a way to restore

Notice it was done using api the log shows api.environment.delete. Is it possible to restore?

I ended up restoring database. I think we should have an extra protection when deleting environments using api.

The UI does everything through the API, and basically all the events start with api., so that doesn’t really mean anything.