delete_stream
Remove a specific stream configuration from Nginx Proxy Manager by providing its unique ID to manage your web proxy infrastructure.
Instructions
Delete a stream by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes | The ID of the stream to delete |
Implementation Reference
- src/npm_mcp/client.py:298-300 (handler)The actual client implementation of the delete_stream logic, which performs a DELETE request to the Nginx stream API.
async def delete_stream(self, stream_id: int) -> None: stream_id = _validate_int_id(stream_id, "stream_id") await self._request("DELETE", f"/api/nginx/streams/{stream_id}") - src/npm_mcp/server.py:161-161 (registration)Tool registration for delete_stream in the MCP server.
Tool(name="delete_stream", description="Delete a stream by ID", inputSchema=_id_schema("stream_id", "The ID of the stream to delete")), - src/npm_mcp/server.py:423-425 (handler)The server handler code that processes the delete_stream tool call and invokes the client method.
elif name == "delete_stream": await npm_client.delete_stream(arguments["stream_id"]) return _msg_response("Stream deleted successfully")