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
Delete Folder
Delete a folder and all associated documents.
Args: folder_name: Name of the folder to delete auth: Authentication context (must have write access to the folder)
Returns: Deletion status
DELETE
/
folders
/
{folder_name}
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folder = await client.folders.delete('folder_name');
console.log(folder.message);
Copy
Ask AI
{
"status": "<string>",
"message": "<string>"
}
Headers
Path Parameters
Response
200
application/json
Successful Response
Response for folder deletion endpoint
Was this page helpful?
JavaScript
Copy
Ask AI
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folder = await client.folders.delete('folder_name');
console.log(folder.message);
Copy
Ask AI
{
"status": "<string>",
"message": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.