Documentation Index
Fetch the complete documentation index at: https://databridge-add-core-funcs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
def remove_document_from_folder(
folder_id_or_name: str,
document_id: str,
) -> Dict[str, str]
async def remove_document_from_folder(
folder_id_or_name: str,
document_id: str,
) -> Dict[str, str]
Parameters
folder_id_or_name (str): Folder identifier. Accepts the folder’s UUID, name, or canonical path (e.g., /projects/alpha/specs; leading slash optional).
document_id (str): Identifier of the document to remove.
Returns
Dict[str, str]: Dictionary with status and message describing the outcome.
Examples
from morphik import Morphik
db = Morphik()
folder = db.get_folder("marketing_docs")
db.remove_document_from_folder(folder.id, "doc_123")
db.remove_document_from_folder("/projects/alpha/specs", "doc_456")
from morphik import AsyncMorphik
async with AsyncMorphik() as db:
folder = await db.get_folder("marketing_docs")
await db.remove_document_from_folder(folder.id, "doc_123")
await db.remove_document_from_folder("/projects/alpha/specs", "doc_456")