JavaScript
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));
{ "error": "<string>", "details": "<string>" }
Delete a document by ID or customId
Documentation IndexFetch the complete documentation index at: https://supermemory.ai/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://supermemory.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Document deleted successfully
Was this page helpful?
Suggestions
Contact support