Delete a connection no source uses
Destroy a saved connection and its token. Refused with 409, naming the sources, while any source still uses it.
curl --request DELETE "$MITHUNAI_URL/mithunai/api/v1/connections/$CONNECTION_ID" \
--header "Authorization: Bearer $MITHUNAI_API_KEY"
{
"code": "conflict",
"message": "This connection is still used by 1 knowledge source: Engineering wiki. Remove those first, then delete it."
}
{ "code": "not_found", "message": "The connection was not found." }
Deletes a connection and destroys its token; it cannot be recovered. While any knowledge source uses the connection, the answer is
409 and nothing changes: the message names up to three of those sources. Delete them first, then the connection. You need the owner or admin role (credential.manage).
string
required
The connection’s ID (UUID).
Response
Returns204 with no body.
curl --request DELETE "$MITHUNAI_URL/mithunai/api/v1/connections/$CONNECTION_ID" \
--header "Authorization: Bearer $MITHUNAI_API_KEY"
{
"code": "conflict",
"message": "This connection is still used by 1 knowledge source: Engineering wiki. Remove those first, then delete it."
}
{ "code": "not_found", "message": "The connection was not found." }
Last modified on October 29, 2026
curl --request DELETE "$MITHUNAI_URL/mithunai/api/v1/connections/$CONNECTION_ID" \
--header "Authorization: Bearer $MITHUNAI_API_KEY"
{
"code": "conflict",
"message": "This connection is still used by 1 knowledge source: Engineering wiki. Remove those first, then delete it."
}
{ "code": "not_found", "message": "The connection was not found." }