app_configuration_kv_delete
Remove a key-value pair from Azure App Configuration using the specified key and optional label. Supports secure and auditable deletion of configuration data.
Instructions
Delete a key-value from Azure App Configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to delete | |
| label | No | The label of the key-value to delete (optional) |
Implementation Reference
- mcp_server_azure/azure_server.py:388-407 (handler)Handler implementation for app_configuration_kv_delete tool: deletes the KV using app_config_client.delete_configuration_setting with key and optional label, then builds response dict with status.elif name == "app_configuration_kv_delete": # Delete a key-value result = app_config_client.delete_configuration_setting( key=arguments["key"], label=arguments.get("label", None) ) if result: response = { "key": result.key, "label": result.label, "deleted": True } else: response = { "key": arguments["key"], "label": arguments.get("label", None), "deleted": False, "message": "Key not found" }
- Input schema for the tool defining properties 'key' (string, required) and 'label' (string, optional).inputSchema={ "type": "object", "properties": { "key": { "type": "string", "description": "The key to delete", }, "label": { "type": "string", "description": "The label of the key-value to delete (optional)", }, }, "required": ["key"], },
- mcp_server_azure/azure_tools.py:376-393 (registration)Tool object registration including name, description, and input schema for app_configuration_kv_delete.Tool( name="app_configuration_kv_delete", description="Delete a key-value from Azure App Configuration", inputSchema={ "type": "object", "properties": { "key": { "type": "string", "description": "The key to delete", }, "label": { "type": "string", "description": "The label of the key-value to delete (optional)", }, }, "required": ["key"], }, ),
- mcp_server_azure/azure_server.py:171-175 (registration)MCP server.list_tools decorator that returns the list of tools including app_configuration_kv_delete via get_azure_tools().@server.list_tools() async def list_tools() -> list[Tool]: """List available Azure tools""" logger.debug("Handling list_tools request") return get_azure_tools() # Use get_azure_tools