workflowy_delete_node
Remove a node and all its child elements from your WorkFlowy outline to declutter your workspace and maintain organized task hierarchies.
Instructions
Delete a WorkFlowy node and all its children
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes |
Implementation Reference
- src/workflowy_mcp/server.py:231-254 (handler)The main handler function for the workflowy_delete_node tool. It uses the WorkFlowy client to delete the specified node, handles rate limiting, and returns a success status.@mcp.tool(name="workflowy_delete_node", description="Delete a WorkFlowy node and all its children") async def delete_node(node_id: str) -> dict: """Delete a WorkFlowy node and all its children. Args: node_id: The ID of the node to delete Returns: Dictionary with success status """ client = get_client() if _rate_limiter: await _rate_limiter.acquire() try: success = await client.delete_node(node_id) if _rate_limiter: _rate_limiter.on_success() return {"success": success, "deleted_id": node_id} except Exception as e: if _rate_limiter and hasattr(e, "__class__") and e.__class__.__name__ == "RateLimitError": _rate_limiter.on_rate_limit(getattr(e, "retry_after", None)) raise
- src/workflowy_mcp/server.py:231-231 (registration)MCP tool registration decorator for workflowy_delete_node.@mcp.tool(name="workflowy_delete_node", description="Delete a WorkFlowy node and all its children")