JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const folder = await client.folders.delete('folder_id_or_name');
console.log(folder.message);curl https://api.morphik.ai/folders/$FOLDER_ID_OR_NAME \
-X DELETE \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"status": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Folders
Delete Folder
Delete a folder and all associated documents.
DELETE
/
folders
/
{folder_id_or_name}
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const folder = await client.folders.delete('folder_id_or_name');
console.log(folder.message);curl https://api.morphik.ai/folders/$FOLDER_ID_OR_NAME \
-X DELETE \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"status": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

