Delete a connection
Deletes a connection. It fails while connected accounts or Virtual MCP servers still use the connection. Delete its connected accounts first with Delete a connected account, and remove it from each server with Update a Virtual MCP server.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
connection_idstringrequiredconn_70219645518265104. Find it in the id field of the List connections response.scalekit_client.actions.delete_connection
Deletes a connection. Pass the connection's name, or its ID with connection_id. It fails while connected accounts or Virtual MCP servers still use the connection, so delete those accounts and remove the connection from those servers first.
scalekit_client.actions.delete_connection( connection_name: Optional[str] = None, connection_id: Optional[str] = None,) -> NoneParameters
connection_nameOptional[str]gmail-work.connection_idOptional[str]conn_70219645518265104, instead of its name. Both are in the List connections response.Returns None: Nothing. The call raises an error if it fails.
From scalekit-sdk-python 2.22.0.
scalekit.actions.deleteConnection
Deletes a connection. Pass the connection's name or ID. It fails while connected accounts or Virtual MCP servers still use the connection, so delete those accounts and remove the connection from those servers first.
scalekit.actions.deleteConnection( connection: string | ConnectionRef,): Promise<void>Parameters
connectionstring | ConnectionRefrequiredgmail-work, or its ID, such as conn_70219645518265104, as a string, or { connectionName } or { connectionId }.Returns Promise<void>: Nothing. The promise rejects if the call fails.
From @scalekit-sdk/node 2.21.0.
Errors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - connected accounts or Virtual MCP servers still use the connection.401Authentication required - missing or invalid access token404Not found - no connection with this ID. Error code RESOURCE_NOT_FOUND.