delete_pool
Remove a pool from Apache Airflow to manage resource allocation and clean up unused configurations in your data pipeline environment.
Instructions
Delete a pool
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"pool_name": {
"title": "Pool Name",
"type": "string"
}
},
"required": [
"pool_name"
],
"type": "object"
}
Implementation Reference
- src/airflow/pool.py:68-82 (handler)The main asynchronous handler function for the 'delete_pool' MCP tool. It accepts a 'pool_name' parameter, invokes the Airflow PoolApi to perform the deletion, and returns a textual confirmation message.async def delete_pool( pool_name: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Delete a pool. Args: pool_name: The pool name. Returns: A confirmation message. """ pool_api.delete_pool(pool_name=pool_name) return [types.TextContent(type="text", text=f"Pool '{pool_name}' deleted successfully.")]
- src/airflow/pool.py:12-20 (registration)The registration function that includes the 'delete_pool' tool in its list of tuples (function reference, tool name 'delete_pool', description, and read-only flag False). This is likely called to register all pool-related MCP tools.def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_pools, "get_pools", "List pools", True), (get_pool, "get_pool", "Get a pool by name", True), (delete_pool, "delete_pool", "Delete a pool", False), (post_pool, "post_pool", "Create a pool", False), (patch_pool, "patch_pool", "Update a pool", False), ]