REST / Contact / Delete

URI

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."
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us