Javascript
import Morphik from 'morphik'; const client = new Morphik({ apiKey: 'My API Key', }); const documentDeleteResponse = await client.folders.documents.remove('document_id', { folder_id: 'folder_id', }); console.log(documentDeleteResponse.message);
{ "status": "<string>", "message": "<string>" }
Remove a document from a folder.
Args: folder_id: ID of the folder document_id: ID of the document auth: Authentication context
Returns: Success status
Successful Response
Response for document deletion endpoint
Was this page helpful?