whmcs_delete_client
Delete a client from WHMCS by specifying their client ID. Use this tool to remove client accounts from your WHMCS installation.
Instructions
Delete a client from WHMCS (use with caution)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientid | Yes | The client ID to delete |
Implementation Reference
- src/index.ts:156-171 (registration)Registers the MCP tool 'whmcs_delete_client' with input schema requiring clientid and a thin handler that delegates to WhmcsApiClient.deleteClientserver.registerTool( 'whmcs_delete_client', { title: 'Delete Client', description: 'Delete a client from WHMCS (use with caution)', inputSchema: { clientid: z.number().describe('The client ID to delete'), }, }, async (params) => { const result = await whmcsClient.deleteClient(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
- src/whmcs-client.ts:236-241 (handler)Core implementation of client deletion: calls the WHMCS API 'DeleteClient' action with the provided clientid parameter via the generic call method./** * Delete a client */ async deleteClient(params: { clientid: number }) { return this.call<WhmcsApiResponse>('DeleteClient', params); }
- src/index.ts:159-163 (schema)Zod schema for input validation: requires a numeric clientid.title: 'Delete Client', description: 'Delete a client from WHMCS (use with caution)', inputSchema: { clientid: z.number().describe('The client ID to delete'), },