Skip to content
Get started

Delete document by ID or customId

client.documents.delete(stringid, RequestOptionsoptions?): void
DELETE/v3/documents/{id}

Delete a document by ID or customId

ParametersExpand Collapse
id: string

Delete document by ID or customId

import Supermemory from 'supermemory';

const client = new Supermemory({
  apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});

await client.documents.delete('id');
Returns Examples