API:Delete Client

Jump to: navigation, search


This command is used to delete a client from the database.


  • clientid - ID Number of the client to delete

Example Command

External API

 $postfields["action"] = "deleteclient";
 $postfields["clientid"] = "1";

Internal API

 $command = "deleteclient";
 $adminuser = "admin";
 $values["clientid"] = 1;
 $results = localAPI($command,$values,$adminuser);

Successful Response

clientid=xxx  # ID of the deleted client

Error Response

result=error&message=Client ID not found # Client ID is not given or found in the database.