Skip to main content
DELETE
/
v3
/
connections
/
{connectionId}
Delete connection by ID
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.supermemory.ai/v3/connections/{connectionId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
import requests

url = "https://api.supermemory.ai/v3/connections/{connectionId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
curl --request DELETE \
--url https://api.supermemory.ai/v3/connections/{connectionId} \
--header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "provider": "<string>"
}
{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}
{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}
{
"error": "Invalid request parameters",
"details": "Query must be at least 1 character long"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

connectionId
string
required

Query Parameters

deleteDocuments
string
default:true

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

Response

Connection deleted successfully

id
string
required
provider
string
required