Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
docs: clarify connectedAccounts.delete() does not revoke OAuth tokens upstream (T-10452)
Uday Sidagana8d53b12b8695
diff --git a/docs/content/docs/auth-configuration/connected-accounts.mdx b/docs/content/docs/auth-configuration/connected-accounts.mdxindex 9b9a49abd..07188efae 100644--- a/docs/content/docs/auth-configuration/connected-accounts.mdx+++ b/docs/content/docs/auth-configuration/connected-accounts.mdx@@ -192,7 +192,7 @@ INACTIVE accounts cannot execute tools. Tool execution will fail until the statu## Delete accounts-Permanently remove a connected account and revoke all credentials:+Soft-delete a connected account so it can no longer be used for API calls. This does **not** revoke the upstream OAuth grant — any access or refresh tokens previously issued remain valid with the third-party provider until they expire or the user revokes them. To revoke upstream access, the end user must do so through the provider's account settings (for example, [Google Account Permissions](https://myaccount.google.com/permissions) for Google).<Tabs groupId="language" items={['Python', 'TypeScript']} persist><Tab value="Python">@@ -216,7 +216,7 @@ console.log('Account deleted successfully');</Tabs><Callout type="warn">-Deletion is permanent. Users must re-authenticate to reconnect.+The Composio record is soft-deleted, but the upstream OAuth grant is unaffected — it remains valid with the provider until the user revokes it from their account settings or the refresh token expires. If the user later reconnects from scratch, the provider will prompt them to re-authorize.</Callout>## Credential maskingdiff --git a/docs/content/reference/sdk-reference/typescript/connected-accounts.mdx b/docs/content/reference/sdk-reference/typescript/connected-accounts.mdxindex 61ea49c24..da5517bff 100644--- a/docs/content/reference/sdk-reference/typescript/connected-accounts.mdx+++ b/docs/content/reference/sdk-reference/typescript/connected-accounts.mdx@@ -18,8 +18,12 @@ const result = await composio.connectedAccounts.list();Deletes a connected account.-This method permanently removes a connected account from the Composio platform.-This action cannot be undone and will revoke any access tokens associated with the account.+This method soft-deletes the connected account record on the Composio platform so it can+no longer be used for API calls. It does **not** revoke OAuth tokens upstream with the+third-party provider — any access or refresh tokens previously issued remain valid until+they expire or are revoked by the user. To revoke upstream access, the end user must do+so through the provider's account settings (for example,+[Google Account Permissions](https://myaccount.google.com/permissions) for Google).```typescriptasync delete(nanoid: string): Promise<ConnectedAccountDeleteResponse>