delete_proxy_host
Remove a proxy host configuration from Nginx Proxy Manager by specifying its ID to manage web proxy infrastructure.
Instructions
Delete a proxy host by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the proxy host to delete |
Implementation Reference
- src/npm_mcp/client.py:160-163 (handler)The actual implementation of the tool, which makes the DELETE request to the NPM API.
async def delete_proxy_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("DELETE", f"/api/nginx/proxy-hosts/{host_id}") - src/npm_mcp/server.py:75-75 (registration)Registration of the delete_proxy_host tool in the MCP server.
Tool(name="delete_proxy_host", description="Delete a proxy host by ID", inputSchema=_id_schema("host_id", "The ID of the proxy host to delete")), - src/npm_mcp/server.py:375-377 (handler)The call_tool handler that routes delete_proxy_host to the NPMClient.
elif name == "delete_proxy_host": await npm_client.delete_proxy_host(arguments["host_id"]) return _msg_response("Proxy host deleted successfully")