Delete Documents from a Memory
This example demonstrates how to delete documents from a memory.
Key Features
- Delete a specific document from a memory
- Delete multiple documents from a memory
- Delete all documents from a memory
Delete Documents from a Memory Example
Delete Documents from a Memory Example
import 'dotenv/config';
import {Langbase} from 'langbase';
const langbase = new Langbase({
apiKey: process.env.LANGBASE_API_KEY!,
});
async function main() {
const response = await langbase.memories.documents.delete({
memoryName: 'memory-sdk',
documentName: 'readme.md',
});
console.log(response);
}
main();