import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folder = await client.folders.delete('folder_name');
console.log(folder.message);
{
"status": "<string>",
"message": "<string>"
}
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
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folder = await client.folders.delete('folder_name');
console.log(folder.message);
{
"status": "<string>",
"message": "<string>"
}
Successful Response
Response for folder deletion endpoint
Was this page helpful?