---
title: "Delete Connection"
method: DELETE
path: "/api/v0/connections/{connection_name_or_id}"
tags: ["connections > connections"]
---

# Delete Connection

`DELETE /api/v0/connections/{connection_name_or_id}`

Delete a connection

## Path parameters

- `connection_name_or_id` union, required
  - string, uuid
  - string

## Headers

- `Authorization` string, required

## Response `200`

Successful Response

- ConnectionsGetConnectionResponse
  - `connection_id` string, uuid, required — The unique identifier for the connection
  - `name` string, required — The connection name
  - `description` string, nullable — The connection description
  - `type` 'https_basic' | 'https_bearer' | 'aws_iam_role', required — The type of connection
  - `status` 'pending' | 'ready' | 'error', required — The status of a connection
  - `config` union, required — The connection configuration
    - ConnectionsHTTPSBasicAuthConfig
      - `hostname` string, required — The hostname to connect to
      - `username` string, required — The username for authentication
      - `password` string, required — The password for authentication
    - ConnectionsHTTPSBearerAuthConfig
      - `hostname` string, required — The hostname to connect to
      - `bearer_token` string, required — The bearer token for authentication
    - ConnectionsAWSIAMRoleConfig
      - `iam_role_arn` string, required — The ARN of the IAM role to assume
      - `scope` 's3' | 'bedrock' — The scope of permissions for an AWS IAM role connection
      - `bucket_name` string, nullable — The S3 bucket name associated with this connection
      - `session_ttl_seconds` integer — Session duration in seconds (60-3600)
  - `created_dt` string, date-time, required — When the connection was created
  - `updated_dt` string, date-time, required — When the connection was last updated

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/coactive/apis/api-reference.md) · [All operations](https://skmtc.dev/coactive/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coactive/api-reference/revisions/1223758be9ba/schema)
