import Reminix from '@reminix/sdk';const client = new Reminix({ apiKey: process.env['REMINIX_API_KEY'], // This is the default and can be omitted});await client.knowledge.collections.documents.delete('x', { collectionId: 'x' });
Copy
{ "error": "Invalid request"}
Knowledge
Delete a document
Delete a document and its associated data.
DELETE
/
knowledge
/
collections
/
{collectionId}
/
documents
/
{documentId}
JavaScript
Copy
import Reminix from '@reminix/sdk';const client = new Reminix({ apiKey: process.env['REMINIX_API_KEY'], // This is the default and can be omitted});await client.knowledge.collections.documents.delete('x', { collectionId: 'x' });