---
title: "Delete a connection"
method: DELETE
path: "/_fabric/{fabric}/_api/connections/{connection-name}"
tags: ["Connections"]
---

# Delete a connection

`DELETE /_fabric/{fabric}/_api/connections/{connection-name}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/connections/:connection-name/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a connection to an external data source.

## Query parameters

- `isInternal` boolean

## Response `200`

Successfully deleted the connection.

- DeletedResponse
  - `error` boolean, required
  - `code` integer
  - `id` string

## Other responses

- `401`: Failed to authenticate the request.
- `404`: Failed to find the connection.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
