Skip to content

Commit

Permalink
Move 'delete job/env' content to dedicated environment pages (#6724)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Jan 7, 2025
2 parents eeceb96 + 12b762a commit 6403020
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 32 deletions.
8 changes: 6 additions & 2 deletions website/docs/docs/dbt-cloud-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import CloudEnvInfo from '/snippets/_cloud-environments-info.md';

<CloudEnvInfo setup={'/snippets/_cloud-environments-info.md'} />


## Create a development environment

To create a new dbt Cloud development environment:
Expand All @@ -48,5 +47,10 @@ Deployment environments in dbt Cloud are necessary to execute scheduled jobs and

Even though you can have many environments, only one of them can be the "main" deployment environment. This would be considered your "production" environment and represents your project's "source of truth", meaning it's where your most reliable and final data transformations live.


To learn more about dbt Cloud deployment environments and how to configure them, refer to the [Deployment environments](/docs/deploy/deploy-environments) page. For our best practices guide, read [dbt Cloud environment best practices](/guides/set-up-ci) for more info.

## Delete an environment

import DeleteEnvironment from '/snippets/_delete-environment.md';

<DeleteEnvironment />
6 changes: 6 additions & 0 deletions website/docs/docs/deploy/deploy-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ Use [extended attributes](/docs/dbt-cloud-environments#extended-attributes) to o

</WHCode>

## Delete an environment

import DeleteEnvironment from '/snippets/_delete-environment.md';

<DeleteEnvironment />

## Related docs

- [dbt Cloud environment best practices](/guides/set-up-ci)
Expand Down
6 changes: 6 additions & 0 deletions website/docs/docs/deploy/deploy-jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ To _chain_ deploy jobs together:

If another job triggers your job to run, you can find a link to the upstream job in the [run details section](/docs/deploy/run-visibility#job-run-details).

## Delete a job

import DeleteJob from '/snippets/_delete-job.md';

<DeleteJob/>

## Related docs

- [Artifacts](/docs/deploy/artifacts)
Expand Down
36 changes: 6 additions & 30 deletions website/docs/faqs/Environments/delete-environment-job.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,14 @@ id: delete-environment-job

To delete an environment or job in dbt Cloud, you must have a `developer` [license](/docs/cloud/manage-access/seats-and-users) and have the necessary [access permissions](/docs/cloud/manage-access/about-user-access).

## Delete a job
### Delete a job

To delete a job or multiple jobs in dbt Cloud:
import DeleteJob from '/snippets/_delete-job.md';

1. Click **Deploy** on the navigation header.
2. Click **Jobs** and select the job(s) you want to delete.
3. Click **Settings** on the top right of the page and then click **Edit**.
4. Scroll to the bottom of the page and click **Delete** to delete the job. <br />
<DeleteJob/>

<figure>
<Lightbox src="/img/docs/dbt-cloud/cloud-configuring-dbt-cloud/delete-job.png" width="100%" title="Delete a job"/>
<figcaption align = "center">Delete a job</figcaption>
</figure>
### Delete an environment

5. Confirm your action in the **Confirm Delete** pop-up by clicking **Confirm Delete** in the bottom right to delete the job immediately. This action cannot be undone. However, you can create a new job with the same information if the deletion was made in error.
import DeleteEnvironment from '/snippets/_delete-environment.md';

Refresh the page, and the deleted job should now be gone. If you want to delete multiple jobs, you'll need to perform these steps for each job.

## Delete an environment

Deleting an environment automatically deletes its associated job(s). If you want to keep those jobs, move them to a different environment first. To delete an environment in dbt Cloud:

1. Click **Deploy** on the navigation header and then click **Environments**
2. Select the Environment you want to delete.
3. Click **Settings** on the top right of the page and then click **Edit**.
4. Scroll to the bottom of the page and click **Delete** to delete the environment. <br />

<Lightbox src="/img/docs/dbt-cloud/cloud-configuring-dbt-cloud/delete-environment.png" width="100%" title="Delete an environment"/>

5. Confirm your action in the **Confirm Delete** pop-up by clicking **Confirm Delete** in the bottom right to delete the environment immediately. This action cannot be undone. However, you can create a new environment with the same information if the deletion was made in error. <br /><br />


Refresh your page, and the deleted environment should now be gone. If you want to delete multiple environments, you'll need to perform these steps to delete each one.

If you're having any issues, feel free to [contact us](mailto:[email protected]) for additional help.
<DeleteEnvironment/>
15 changes: 15 additions & 0 deletions website/snippets/_delete-environment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Deleting an environment automatically deletes its associated job(s). If you want to keep those jobs, move them to a different environment first.

Follow these steps to delete an environment in dbt Cloud:

1. Click **Deploy** on the navigation header and then click **Environments**
2. Select the environment you want to delete.
3. Click **Settings** on the top right of the page and then click **Edit**.
4. Scroll to the bottom of the page and click **Delete** to delete the environment.

<Lightbox src="/img/docs/dbt-cloud/cloud-configuring-dbt-cloud/delete-environment.png" width="90%" title="Delete an environment"/>

5. Confirm your action in the pop-up by clicking **Confirm delete** in the bottom right to delete the environment immediately. This action cannot be undone. However, you can create a new environment with the same information if the deletion was made in error.
6. Refresh your page and the deleted environment should now be gone. To delete multiple environments, you'll need to perform these steps to delete each one.

If you're having any issues, feel free to [contact us](mailto:[email protected]) for additional help.
15 changes: 15 additions & 0 deletions website/snippets/_delete-job.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
To delete a job or multiple jobs in dbt Cloud:

1. Click **Deploy** on the navigation header.
2. Click **Jobs** and select the job you want to delete.
3. Click **Settings** on the top right of the page and then click **Edit**.
4. Scroll to the bottom of the page and click **Delete** to delete the job. <br />

<figure>
<Lightbox src="/img/docs/dbt-cloud/cloud-configuring-dbt-cloud/delete-job.png" width="100%" title="Delete a job"/>
</figure>

5. Confirm your action in the pop-up by clicking **Confirm delete** in the bottom right to delete the job immediately. This action cannot be undone. However, you can create a new job with the same information if the deletion was made in error.
6. Refresh the page, and the deleted job should now be gone. If you want to delete multiple jobs, you'll need to perform these steps for each job.

If you're having any issues, feel free to [contact us](mailto:[email protected]) for additional help.

0 comments on commit 6403020

Please sign in to comment.