DELETE
/
v3
/
connections
/
{provider}
Delete connection
const url = 'https://api.supermemory.ai/v3/connections/{provider}';
const options = {
  method: 'DELETE',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"containerTags":["user_123","project_123"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "id": "<string>",
  "provider": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

provider
enum<string>
required
Available options:
notion,
google-drive,
onedrive

Body

application/json
containerTags
string[]
required

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

Example:
["user_123", "project_123"]

Response

Connection deleted successfully

id
string
required
provider
string
required