delete_redirection_host
Remove a redirection host configuration by its ID to stop redirecting web traffic through Nginx Proxy Manager.
Instructions
Delete a redirection host by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the redirection host to delete |
Implementation Reference
- src/npm_mcp/client.py:262-264 (handler)The actual implementation of the delete_redirection_host tool in the NPMClient class.
async def delete_redirection_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("DELETE", f"/api/nginx/redirection-hosts/{host_id}") - src/npm_mcp/server.py:121-121 (registration)Registration of the delete_redirection_host tool in the server's list_tools function.
Tool(name="delete_redirection_host", description="Delete a redirection host by ID", inputSchema=_id_schema("host_id", "The ID of the redirection host to delete")), - src/npm_mcp/server.py:399-401 (handler)Handler logic in the server's call_tool function that maps the "delete_redirection_host" tool name to the client's method.
elif name == "delete_redirection_host": await npm_client.delete_redirection_host(arguments["host_id"]) return _msg_response("Redirection host deleted successfully")