Delete connection by ID

JavaScript

const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

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

Response Codes

  • 200
  • 401
  • 404
  • 500

Response Structure

{
  "id": "<string>",
  "provider": "<string>"
}

Authorizations

  • Authorization: string (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

  • 200: application/json
    • Connection deleted successfully