Delete Contact

deletecontact

Purpose

This command is used to delete a contact in the system.

Attributes

  • contactid - The ID of the contact to delete

Example Command

$postfields = array();
$postfields["responsetype"] = "json";

$postfields["action"] = "deletecontact";
$postfields["contactid"] = "1";

$result = mikrovps_SendCommand( $postfields );

Successful Response

result = success
contactid = xxx # ID of deleted contact that was deleted

Error Response

result=error
message=Contact ID not found

Given Contact ID is not found in the database.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Add Cancel Request

addcancelrequest Purpose This command is used to Add Cancellation Request for a specific...

Add Contact

addcontact Purpose This command is used to create a new contact under an account. Attributes...

Get Clients Details

getclientsdetails Purpose This command is used to retrieve all the data held about your...

Get Clients Addons

getclientsaddons Purpose This command is used to obtain the addons associated with a client...

Get Clients Domains

getclientsdomains Purpose This command is used to get the details of all the domains a client...