To delete an environment, all its containers need to be up and running. Any stuck processes running on the app container like long-running crons will prevent the deletion process to complete. You can take these two actions to get the deletion to not fail:
- SSH into the app container and kill any running cron process. Use
ps axf
andkill
commands. - Make sure services versions match to the last successful deploy. Downgrading services will fail causing the deploy to hang.
If the deleting an environment still hanging after trying the above steps, please open a support ticket, so we can manually delete the stuck environment.