delete_alias
Remove an alias from a specific Elasticsearch index to manage index references and streamline data organization.
Instructions
Delete an alias for a specific index.
Args:
index: Name of the index
name: Name of the alias
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| name | Yes |
Implementation Reference
- src/tools/alias.py:36-46 (handler)The main handler function for the 'delete_alias' MCP tool. It is decorated with @mcp.tool() for registration and executes the deletion by calling the search client's delete_alias method. The docstring and type hints define the input schema.@mcp.tool() def delete_alias(index: str, name: str) -> Dict: """ Delete an alias for a specific index. Args: index: Name of the index name: Name of the alias """ return self.search_client.delete_alias(index=index, name=name)
- src/clients/common/alias.py:18-20 (helper)Supporting helper method in the AliasClient class that implements the core deletion logic using the underlying search client's indices.delete_alias.def delete_alias(self, index: str, name: str) -> Dict: """Delete an alias for the specified index.""" return self.client.indices.delete_alias(index=index, name=name)