Delete an environment

Deleting an environment terminates all resources within the environment including the Data Lake.

Before you begin

To delete an environment, you should first terminate all clusters running in that environment.

Steps - CDP web interface

  1. Navigate to the environment in Management Console.
  2. Click Actions > Terminate Environment and confirm the deletion.
    You can optionally check the box next to "I would like to delete all connected resources" if you have Data Lake and Data Hub clusters running within the environment. This will delete the Data Lake and Data Hub clusters together with the rest of the environment.

Steps - CDP CLI

When terminating an environment from the CDP CLI, you need to first terminate the Data Lake:

  1. Terminate the Data Lake using the following command:
    cdp datalake delete-datalake --datalake-name <value>
  2. Wait until the Data Lake terminates before proceeding. Use the following commands to check on the status of Data Lake:
    cdp datalake get-cluster-host-status --cluster-name <value>
    cdp datalake list-datalakes
  3. Delete the environment using the following command:
    cdp environments delete-environment --environment-name <value>

Only the resources that were provisioned as part of the environment are deleted. For example, if a new VPC was created by CDP for the environment, the VPC will be deleted; But if you provided your existing VPC, it will not be deleted as part of environment deletion.