Skip to content
Get started

Delete connection

client.connections.deleteByProvider("notion" | "google-drive" | "onedrive" | 4 moreprovider, ConnectionDeleteByProviderParams { containerTags } body, RequestOptionsoptions?): ConnectionDeleteByProviderResponse { id, provider }
DELETE/v3/connections/{provider}

Delete connection for a specific provider and container tags

ParametersExpand Collapse
provider: "notion" | "google-drive" | "onedrive" | 4 more
One of the following:
"notion"
"google-drive"
"onedrive"
"gmail"
"github"
"web-crawler"
"s3"
body: ConnectionDeleteByProviderParams { containerTags }
containerTags: Array<string>

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

ReturnsExpand Collapse
ConnectionDeleteByProviderResponse { id, provider }
id: string
provider: string

Delete connection

import Supermemory from 'supermemory';

const client = new Supermemory({
  apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});

const response = await client.connections.deleteByProvider('notion', {
  containerTags: ['user_123', 'project_123'],
});

console.log(response.id);
{
  "id": "id",
  "provider": "provider"
}
Returns Examples
{
  "id": "id",
  "provider": "provider"
}