Delete an environment - AWS Proton

Delete an environment

You can delete an environment by using the console or the AWS CLI.

Delete an environment using the console as described in the following two options.

In the list of environments.

  1. In the AWS Proton console, choose Environments.

  2. In the list of environments, select the radio button to the left of the environment you want to delete.

  3. Choose Actions and then Delete.

  4. A modal prompts you to confirm the delete action.

  5. Follow the instructions and choose Yes, delete.

In the environment detail page.

  1. In the AWS Proton console, choose Environments.

  2. In the list of environments, choose the name of the environment you want to delete.

  3. In the environment detail page, choose Actions and then Delete.

  4. A modal prompts you to confirm the delete action.

  5. Follow the instructions and choose Yes, delete.

Use the AWS CLI to delete an environment as shown in following example command and response. Don't delete an environment if services or service instances are deployed to the environment.

Command:

aws proton delete-environment --name "MySimpleEnv"

Response:

{ "environment": { "arn": "arn:aws:proton:region-id:123456789012:environment/MySimpleEnv", "createdAt": "2021-04-02T17:29:55.472000+00:00", "deploymentStatus": "DELETE_IN_PROGRESS", "lastDeploymentAttemptedAt": "2021-04-02T17:48:26.307000+00:00", "lastDeploymentSucceededAt": "2021-04-02T17:48:26.307000+00:00", "name": "MySimpleEnv", "protonServiceRoleArn": "arn:aws:iam::123456789012:role/ProtonServiceRole", "templateMajorVersion": "1", "templateMinorVersion": "1", "templateName": "simple-env" } }