Cloud Composer 1 is in the post-maintenance mode. Google
does not release any further updates to Cloud Composer 1, including new versions of Airflow, bugfixes, and security updates. We recommend planning
migration to Cloud Composer 2 .
Send feedback
Delete Cloud Composer environments
Stay organized with collections
Save and categorize content based on your preferences.
Cloud Composer 3 | Cloud Composer 2 | Cloud Composer 1
This page explains how to delete your Cloud Composer environment.
Resources that are not deleted automatically
Deleting your environment does not delete the following data in your project:
Your environment's Cloud Storage bucket.
Cloud Logging logs.
To avoid incurring charges to your Google Cloud account, export your
data and delete the environment's bucket
and Cloud Logging logs, as needed.
If you use alerting policies to monitor your
environment's metrics, delete these policies before deleting your environment.
Your environment's cluster is deleted automatically
Warning: Do not delete the GKE cluster of your environment
manually. This happens automatically during the environment deletion. If you
delete the cluster before the environment, then attempting to delete your
environment results in an error. To fix this problem, see
Troubleshooting .
Delete a Cloud Composer environment
Console
Delete the Cloud Composer environment:
In the Google Cloud console, go to the Environments page.
Go to Environments
Select your environment and click Delete .
Wait until the environment is deleted.
Delete your environment's bucket. Cloud Composer
does not delete the environment's bucket automatically.
Warning: Deleting your environment's bucket deletes all objects stored
within the bucket, such as DAGs and plugins. These objects cannot be
recovered after you delete the bucket.
In the Google Cloud console, go to the Storage >
Browser page.
Go to Storage > Browser
Select the environment's bucket and click Delete . For example, this
bucket can be named us-central1-example-environ-c1616fe8-bucket
.
gcloud
Delete the Cloud Composer environment:
gcloud composer environments delete ENVIRONMENT_NAME \
--location LOCATION
Replace:
ENVIRONMENT_NAME
with the name of the environment.
LOCATION
with the region where the environment is located.
Delete your environment's bucket. Cloud Composer
does not delete the environment's bucket automatically.
Warning: Deleting your environment's bucket deletes all objects stored
within the bucket, such as DAGs and plugins. These objects cannot be
recovered after you delete the bucket.
gcloud storage rm gs://BUCKET_NAME --recursive
Replace:
BUCKET_NAME
with the name of your environment's bucket. For example,
this bucket can be named
us-central1-example-environ-c1616fe8-bucket
.
API To delete an environment, construct an environments.delete
API request with the environment ID.
Caution: Cloud Composer does not automatically delete the
environment's bucket and the persistent disk of the environment's Redis
queue. If these components are no longer needed, delete them manually.
To delete an environment using Terraform, remove the
Cloud Composer configuration from your overall resource
configuration and run terraform apply
.
Caution: Cloud Composer does not automatically delete
the environment's bucket. If it's no longer needed, delete it manually.
What's next
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]