delete_certificate
Remove SSL certificates by ID from Nginx Proxy Manager to manage certificate lifecycle and maintain security.
Instructions
Delete an SSL certificate by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| certificate_id | Yes | The ID of the certificate to delete |
Implementation Reference
- src/npm_mcp/client.py:189-191 (handler)The handler method in the NPMClient class that performs the actual API call to delete an SSL certificate.
async def delete_certificate(self, cert_id: int) -> None: cert_id = _validate_int_id(cert_id, "certificate_id") await self._request("DELETE", f"/api/nginx/certificates/{cert_id}") - src/npm_mcp/server.py:464-466 (handler)The handler logic in the server's 'call_tool' implementation for 'delete_certificate'.
elif name == "delete_certificate": await npm_client.delete_certificate(arguments["certificate_id"]) return _msg_response("Certificate deleted successfully") - src/npm_mcp/server.py:222-222 (registration)The registration of the 'delete_certificate' tool in the MCP server.
Tool(name="delete_certificate", description="Delete an SSL certificate by ID", inputSchema=_id_schema("certificate_id", "The ID of the certificate to delete")),