Skip to main content
DELETE
/
v3
/
documents
/
{id}
Delete document by ID or customId
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.supermemory.ai/v3/documents/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
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