whmcs_delete_order
Remove an order from WHMCS by specifying its ID. Use this tool to manage order records in your WHMCS installation.
Instructions
Delete an order (use with caution)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderid | Yes | Order ID |
Implementation Reference
- src/index.ts:816-830 (registration)Registers the MCP tool 'whmcs_delete_order' with input schema requiring orderid and handler that calls whmcsClient.deleteOrder'whmcs_delete_order', { title: 'Delete Order', description: 'Delete an order (use with caution)', inputSchema: { orderid: z.number().describe('Order ID'), }, }, async (params) => { const result = await whmcsClient.deleteOrder(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
- src/whmcs-client.ts:1021-1023 (handler)Implements the core logic of the whmcs_delete_order tool by calling the WHMCS API 'DeleteOrder' action with the provided orderid parameter via the generic call method.async deleteOrder(params: { orderid: number }) { return this.call<WhmcsApiResponse>('DeleteOrder', params); }