Delete a connected account
Deletes the account and the credentials Scalekit stores for it. It doesn't revoke the user's grant at the app. Identify the account by ID, or by its connector and identifier. This can't be undone.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Body
connectorstringidstringidentifierstringorganization_idstringidentifier, such as a Scalekit organization ID. Ignored when identifier is set.user_idstringorganization_id, keys the account to one user in that organization. Ignored when identifier is set.scalekit_client.actions.delete_connected_account
Delete a connected account
scalekit_client.actions.delete_connected_account( connection_name: Optional[str] = None, identifier: Optional[str] = None, connected_account_id: Optional[str] = None,) -> DeleteConnectedAccountResponseParameters
connection_nameOptional[str]identifierOptional[str]connected_account_idOptional[str]Returns DeleteConnectedAccountResponse: An empty response.
From scalekit-sdk-python 2.19.1.
scalekit.actions.deleteConnectedAccount
Delete a connected account. Requires either connectedAccountId or both connectionName + identifier.
scalekit.actions.deleteConnectedAccount( params: { connectionName?: string; identifier?: string; connectedAccountId?: string; organizationId?: string; userId?: string; },): Promise<DeleteConnectedAccountResponse>Parameters
connectionNamestringidentifierstringconnectedAccountIdstringorganizationIdstringidentifier, such as a Scalekit organization ID. Ignored when identifier is set.userIdstringorganization_id, keys the account to one user in that organization. Ignored when identifier is set.Returns Promise<DeleteConnectedAccountResponse>.
From @scalekit-sdk/node 2.18.0.
Errors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - malformed parameters or validation failed. Error code MCP_SERVER_EXISTS_FOR_CONNECTED_ACCOUNT when a Virtual MCP server instance for this user still uses the account; delete that Virtual MCP server first.401Authentication required - missing or invalid access token404Connected account not found - the specified account does not exist