Skip to content
Get started

Delete document by ID or customId

documents.delete(strid)
DELETE/v3/documents/{id}

Delete a document by ID or customId

ParametersExpand Collapse
id: str

Delete document by ID or customId

import os
from supermemory import Supermemory

client = Supermemory(
    api_key=os.environ.get("SUPERMEMORY_API_KEY"),  # This is the default and can be omitted
)
client.documents.delete(
    "id",
)
Returns Examples