haproxy_frontend_delete
Remove an HAProxy frontend by specifying its UUID to streamline configuration updates on OPNSense firewalls managed via the MCP server.
Instructions
Delete an HAProxy frontend
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Frontend UUID |
Implementation Reference
- The `deleteFrontend` method in HAProxyResource class executes the core logic for the haproxy_frontend_delete tool: it sends a POST request to `/haproxy/settings/delFrontend/${uuid}` to delete the frontend and then calls reconfigure to apply changes.async deleteFrontend(uuid: string): Promise<boolean> { try { const response = await this.client.post(`/haproxy/settings/delFrontend/${uuid}`); if (response.result !== 'deleted') { throw new Error('Failed to delete frontend'); } await this.reconfigure(); return true; } catch (error) { throw new Error(`Failed to delete HAProxy frontend: ${error}`); }