Skip to content
Get started

Delete connection

connections.delete_by_provider(Literal["notion", "google-drive", "onedrive", 4 more]provider, ConnectionDeleteByProviderParams**kwargs) -> ConnectionDeleteByProviderResponse
DELETE/v3/connections/{provider}

Delete connection for a specific provider and container tags

ParametersExpand Collapse
provider: Literal["notion", "google-drive", "onedrive", 4 more]
One of the following:
"notion"
"google-drive"
"onedrive"
"gmail"
"github"
"web-crawler"
"s3"
container_tags: Sequence[str]

Optional comma-separated list of container tags to filter connections by

ReturnsExpand Collapse
class ConnectionDeleteByProviderResponse:
id: str
provider: str

Delete connection

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_provider(
    provider="notion",
    container_tags=["user_123", "project_123"],
)
print(response.id)
{
  "id": "id",
  "provider": "provider"
}
Returns Examples
{
  "id": "id",
  "provider": "provider"
}