---
title: "Remove user database connection"
method: DELETE
path: "/api/v1/database/connection"
---

# Remove user database connection

`DELETE /api/v1/database/connection`

## Request

- Base URL: `https://localhost:3000`
- URL: `https://localhost:3000/api/v1/database/connection`
- Auth: OAuth 2 (authorization code, authorization URL `/oauth/authorize`, token URL `/oauth/token`)

Delete PostgreSQL connection settings for the authenticated user.

## Response `200`

Database connection removed

- object
  - `removed` boolean
  - `connector_id` string
  - `session_user` string
  - `credential_identity` string

## Other responses

- `401`: Authentication required
- `500`: Internal server error

---

[API](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api.md) · [All operations](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corpusiq/apis/multi-source-mcp-api/revisions/e25648ba6027?raw)
