Contentstack allows you to delete an environment if the deployment channel no longer exists.
To delete an existing environment from the stack, log in to your Contentstack account, navigate to your stack, and perform the following steps:
- Click the “Settings” icon (press “S”) on the left navigation panel and select Environments (or press “alt + E” for Windows OS users, and “option + E” for Mac OS users).
- Hover over the environment you want to delete, click the “Delete” icon that appears at the right end.
- Confirm your Delete action.
To perform the delete action via API request, refer to the Delete environment API request.