Delete Contact
print_mail.contacts.delete(strid) -> ContactDeleteResponse
DELETE/print-mail/v1/contacts/{id}
Delete a contact. Note that this will not affect orders that were sent to this contact.
Delete Contact
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
contact = client.print_mail.contacts.delete(
"id",
)
print(contact.id){
"id": "contact_sqF12lZ1VlBb",
"deleted": true,
"object": "contact"
}Returns Examples
{
"id": "contact_sqF12lZ1VlBb",
"deleted": true,
"object": "contact"
}