delete_dead_host
Remove inactive proxy hosts from Nginx Proxy Manager to maintain clean configuration and optimize server performance by deleting dead hosts using their ID.
Instructions
Delete a dead host by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the dead host to delete |
Implementation Reference
- src/npm_mcp/client.py:334-336 (handler)The actual implementation of the delete_dead_host logic that performs the API request.
async def delete_dead_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("DELETE", f"/api/nginx/dead-hosts/{host_id}") - src/npm_mcp/server.py:203-203 (registration)The MCP tool definition for delete_dead_host.
Tool(name="delete_dead_host", description="Delete a dead host by ID", inputSchema=_id_schema("host_id", "The ID of the dead host to delete")), - src/npm_mcp/server.py:447-449 (handler)The server-side handler dispatching the call to the npm_client.
elif name == "delete_dead_host": await npm_client.delete_dead_host(arguments["host_id"]) return _msg_response("Dead host deleted successfully")