delete_user
Remove a user account from Nginx Proxy Manager by specifying their unique ID to manage access control and user permissions.
Instructions
Delete a user by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | The ID of the user to delete |
Implementation Reference
- src/npm_mcp/client.py:370-373 (handler)The actual implementation of the delete_user logic, which makes a DELETE request to the NPM API.
async def delete_user(self, user_id: int) -> None: user_id = _validate_int_id(user_id, "user_id") await self._request("DELETE", f"/api/users/{user_id}") - src/npm_mcp/server.py:506-508 (handler)The tool handler in the MCP server that calls the delete_user method on the NPM client.
elif name == "delete_user": await npm_client.delete_user(arguments["user_id"]) return _msg_response("User deleted successfully") - src/npm_mcp/server.py:303-303 (registration)Registration of the delete_user tool within the MCP server's tool list.
Tool(name="delete_user", description="Delete a user by ID", inputSchema=_id_schema("user_id", "The ID of the user to delete")),