Skip to main content
Glama

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
NameRequiredDescriptionDefault
clientidYesThe 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.deleteClient
    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) }], }; } );
  • 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); }
  • 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'), },

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