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 | admin@example.com | 1234 |
by_user_id |
bool | no | false |
Example
{ "id_or_email" : "email@example.com", "by_user_id" : false, }
Response
Successful deletion of the contact returns the following response.
{ "code": "success", "message": "contact deleted successfully." }