Skip to main content

astro dbt delete

public preview
This feature is in Public Preview.
info

This command is only available on Astro.

Delete a dbt project from a Deployment on Astro. This command deletes a dbt project from the Airflow environments where you deployed it.

When you run astro dbt delete, you are prompted to select from a list of Deployments that you can access in your Workspace. You can bypass this prompt and specify a Deployment name or ID in the command. To retrieve a Deployment ID, open your Deployment in the Astro UI and copy the value in the ID section of the Deployment page. You can also run astro deployment list to find a Deployment ID or name.

info

To complete this action, Workspace Owner permissions are required.

Usage

astro dbt delete <your-deployment-id> <options>

Options

OptionDescriptionPossible Values
-n, --deployment-nameName of the Deployment to delete your dbt project fromAny valid Deployment ID
--descriptionDescription of the project to store on the deployString
-m, --mount-pathPath describing where the dbt project you want to delete is mounted in Airflow. Default path is /usr/local/airflow/dbt/<dbt-project-name>Any valid path except /usr/local/airflow/dags, which is used for DAG deploys
-p, --project-pathPath to the dbt project that you want to delete. The default is your current directoryAny valid filepath to a dbt project
-w, --waitWait for the Deployment to become healthy before ending the delete command. Default is FalseTrue or False
--workspace-idThe Workspace ID for the Deployment from which you want to delete your dbt projectAny valid Workspace ID

Examples

To delete a dbt project from a specific Deployment:

astro dbt delete clyxf6ivz000008jth73k37r6

To delete a project that has the mount path, /usr/local/airflow/dbt/test-dbt-project from a specific Deployment.

astro dbt delete clyxf6ivz000008jth73k37r6 --mount-path="/usr/local/airflow/dbt/test-dbt-project"

Was this page helpful?

Sign up for Developer Updates

Get a summary of new Astro features once a month.

You can unsubscribe at any time.
By proceeding you agree to our Privacy Policy, our Website Terms and to receive emails from Astronomer.