Contact - Deleting Contact

You can remove existing contact form Groundhogg's contact database by making a DELETE HTTP request along with valid headers. it requires the id_or_email parameter as an argument. you can pass the id of contact or email address of contact to delete a contact. If contacts get deleted successfully then you will receive the following output.

You can also perform this operation by setting “id_or_email” to the user id of a user and passing by_user_id = true.

http://yoursite.com/wp-json/gh/v3/contacts

Successful execution of this operation 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