Skip to main content
Glama

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
NameRequiredDescriptionDefault
orderidYesOrder 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) }], }; } );
  • 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); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scarecr0w12/whmcs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server