REST API V3 / Contact / Delete
URL
DELETE /wp-json/gh/v3/contacts
Method
This endpoint supports the DELETE method.
Request
To delete a contact record you must pass these arguments.
| PARAM | TYPE | REQUIRED | EXAMPLE |
id_or_email |
string | int | Yes | [email protected] | 1234 |
by_user_id |
bool | no | false |
Example
{
"id_or_email" : "[email protected]",
"by_user_id" : false,
}
Response
Successful deletion of the contact returns the following response.
{
"code": "success",
"message": "contact deleted successfully."
}