DELETE
/
v3
/
documents
/
{id}
Delete document by ID or customId
const url = 'https://api.supermemory.ai/v3/documents/{id}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Response

Document deleted successfully