Getting Started
API Reference
- GETPing Health
- GETGet Available Models
- POSTRetrieve Chunks
- POSTRetrieve Chunks Grouped
- POSTRetrieve Documents
- POSTBatch Get Documents
- POSTBatch Get Chunks
- POSTQuery Completion
- GETGet Chat History
- GETGet Available Models For Selection
- POSTAgent Query
- GETGet Usage Stats
- GETGet Recent Usage
- POSTGenerate Local Uri
- POSTGenerate Cloud Uri
- DELDelete Cloud App
- GETList Chat Conversations
- PATCHUpdate Chat Title
Documents
Folders
Workflows
model-config
Logs
Graph
Folders
Remove Document From Folder
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
DELETE
/
folders
/
{folder_id}
/
documents
/
{document_id}
JavaScript
Copy
Ask AI
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);
Copy
Ask AI
{
"status": "<string>",
"message": "<string>"
}
Headers
Response
200
application/json
Successful Response
Response for document deletion endpoint
Was this page helpful?
JavaScript
Copy
Ask AI
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);
Copy
Ask AI
{
"status": "<string>",
"message": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.