TypeScript
import { Orchata } from '@orchata/sdk'; const client = new Orchata({ apiKey: 'oai_your_api_key' }); await client.documents.delete('doc_123', 'space_123');
{ "success": true, "message": "<string>" }
Permanently delete a document and its file from storage
"document_123"
The ID of the space containing the documents
"space_123"
Document deleted successfully