Delete a contact
contacts.delete(strphone_number) -> ContactDeleteResponse
/api/v2/contacts/{phone_number}
Delete a specific contact
Parameters
phone_number: str
Returns
Delete a contact
import os
from sendblue_api import SendblueAPI
client = SendblueAPI(
api_key=os.environ.get("SENDBLUE_API_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SENDBLUE_API_API_SECRET"), # This is the default and can be omitted
)
contact = client.contacts.delete(
"+1234567890",
)
print(contact.status)
{
"status": "OK"
}
Returns Examples
{
"status": "OK"
}