diff options
| author | MaheshtheDev <[email protected]> | 2025-12-24 01:44:53 +0000 |
|---|---|---|
| committer | MaheshtheDev <[email protected]> | 2025-12-24 01:44:53 +0000 |
| commit | ea9fa65169561e426e57bcef448d787b96eca7bc (patch) | |
| tree | a1e14fc00aebcad102d64384174f5f8208d5fa83 /apps/docs/connectors/github.mdx | |
| parent | feat(@supermemory/tools): vercel ai sdk compatbile with v5 and v6 (#628) (diff) | |
| download | supermemory-ea9fa65169561e426e57bcef448d787b96eca7bc.tar.xz supermemory-ea9fa65169561e426e57bcef448d787b96eca7bc.zip | |
fix(docs): delete connections sdk snippet (#629)12-23-fix_docs_delete_connections_sdk_snippet
Diffstat (limited to 'apps/docs/connectors/github.mdx')
| -rw-r--r-- | apps/docs/connectors/github.mdx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/docs/connectors/github.mdx b/apps/docs/connectors/github.mdx index 3fe69acf..68df9a4f 100644 --- a/apps/docs/connectors/github.mdx +++ b/apps/docs/connectors/github.mdx @@ -410,14 +410,27 @@ When you update the repository configuration: <Tab title="TypeScript"> ```typescript // Delete by connection ID - const result = await client.connections.delete(connectionId); + const result = await client.connections.deleteByID(connectionId); + + // Or delete by provider (requires container tags) + const result = await client.connections.deleteByProvider('github', { + containerTags: ['user-123'] + }); + console.log('Deleted connection:', result.id); ``` </Tab> <Tab title="Python"> ```python # Delete by connection ID - result = client.connections.delete(connection_id) + result = client.connections.delete_by_id(connection_id) + + # Or delete by provider (requires container tags) + result = client.connections.delete_by_provider( + provider='github', + container_tags=['user-123'] + ) + print(f'Deleted connection: {result.id}') ``` </Tab> |