From ea9fa65169561e426e57bcef448d787b96eca7bc Mon Sep 17 00:00:00 2001
From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com>
Date: Wed, 24 Dec 2025 01:44:53 +0000
Subject: fix(docs): delete connections sdk snippet (#629)

---
 apps/docs/connectors/github.mdx | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

(limited to 'apps/docs/connectors/github.mdx')

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>
-- 
cgit v1.2.3

