Skip to content
Get started

Delete connection by ID

connections.delete_by_id(strconnection_id, ConnectionDeleteByIDParams**kwargs) -> ConnectionDeleteByIDResponse
DELETE/v3/connections/{connectionId}

Delete a specific connection by ID

ParametersExpand Collapse
connection_id: str
delete_documents: Optional[str]

Whether to also delete documents imported by this connection. Defaults to true.

ReturnsExpand Collapse
List[ConnectionDeleteByIDResponseItem]
id: str
provider: str

Delete connection by ID

import os
from supermemory import Supermemory

client = Supermemory(
    api_key=os.environ.get("SUPERMEMORY_API_KEY"),  # This is the default and can be omitted
)
response = client.connections.delete_by_id(
    connection_id="connectionId",
)
print(response)
[
  {
    "id": "id",
    "provider": "provider"
  }
]
Returns Examples
[
  {
    "id": "id",
    "provider": "provider"
  }
]