---
title: "Delete dbt environment"
method: DELETE
path: "/v1/connections/{connectionId}/dbt/environments/{environmentId}"
tags: ["dbt"]
---

# Delete dbt environment

`DELETE /v1/connections/{connectionId}/dbt/environments/{environmentId}`

## Request

- Base URL: `https://blobsrus.omniapp.co/api`
- URL: `https://blobsrus.omniapp.co/api/v1/connections/{connectionId}/dbt/environments/{environmentId}`
- Auth: HTTP bearer

<Note>
  The permissions required depend on who owns the environment:

  - **Your own personal environment** - **Restricted Querier** permissions or higher on the connection
  - **A shared environment** - **Connection Admin** or **Organization Admin** permissions
  - **Another user's personal environment** - **Organization Admin** permissions
</Note>

Delete an existing dbt environment from the specified connection. This action cannot be undone.

## Path parameters

- `connectionId` string, uuid, required
- `environmentId` string, uuid, required

## Response `200`

dbt environment deleted successfully

- object
  - `success` boolean

## Other responses

- `401`: Missing or invalid authentication
- `403`: Forbidden Possible causes: - Insufficient permissions. Only the environment's owner, a **Connection Admin** (shared environments), or an **Organization Admin** can delete it. - Connection dialect does not support dbt environments - Attempting to access a resource in a different organization
- `404`: Connection or dbt environment not found
- `429`: Too Many Requests - Rate limit exceeded (60 requests/minute)

---

[API](https://skmtc.dev/omni/apis/omni-api.md) - [All operations](https://skmtc.dev/omni/apis/omni-api/llms.txt) - [OpenAPI document](https://skmtc.dev/omni/apis/omni-api/revisions/43290040f88f?raw)
