Delete Client
whmcs_delete_clientPermanently delete a client from WHMCS using the client ID. Use this tool with caution as the removal cannot be undone.
Instructions
Delete a client from WHMCS (use with caution)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientid | Yes | The client ID to delete |
Implementation Reference
- src/whmcs-client.ts:239-241 (handler)The handler method `deleteClient` in `WhmcsApiClient` class that executes the actual API call to delete a client via WHMCS API action 'DeleteClient'.
async deleteClient(params: { clientid: number }) { return this.call<WhmcsApiResponse>('DeleteClient', params); } - src/index.ts:162-163 (schema)Input schema definition for the 'whmcs_delete_client' tool: requires a `clientid` (number) parameter describing the client ID to delete.
clientid: z.number().describe('The client ID to delete'), }, - src/index.ts:156-171 (registration)Registration of the 'whmcs_delete_client' tool via `server.registerTool()` with title 'Delete Client', description, input schema, and the async handler that delegates to `whmcsClient.deleteClient(params)`.
server.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) }], }; } );