---
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}`

<Note>
  This endpoint requires **Connection Admin** permissions for the connection.
</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. **Connection Admin** permissions for the connection are required. - 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.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
