delete_destination_connector
Remove a destination connector from the Unstructured API MCP Server by providing its ID to manage data flow endpoints.
Instructions
Delete a destination connector.
Args:
destination_id: ID of the destination connector to delete
Returns:
String containing the result of the deletion
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination_id | Yes |
Implementation Reference
- The handler function that executes the deletion of a destination connector using the unstructured client API.async def delete_destination_connector(ctx: Context, destination_id: str) -> str: """Delete a destination connector. Args: destination_id: ID of the destination connector to delete Returns: String containing the result of the deletion """ client = ctx.request_context.lifespan_context.client try: _ = await client.destinations.delete_destination_async( request=DeleteDestinationRequest(destination_id=destination_id), ) return f"Destination Connector with ID {destination_id} deleted successfully" except Exception as e: return f"Error deleting destination connector: {str(e)}"
- uns_mcp/connectors/destination/__init__.py:10-15 (registration)The registration function that registers the delete_destination_connector tool (along with create and update) with the MCP server using the mcp.tool() decorator.def register_destination_connectors(mcp: FastMCP): """Register all destination connector tools with the MCP server.""" mcp.tool()(create_destination_connector) mcp.tool()(update_destination_connector) mcp.tool()(delete_destination_connector)