Skip to content
Get Started

Delete a contact

contacts.delete(strphone_number) -> ContactDeleteResponse
delete/api/v2/contacts/{phone_number}

Delete a specific contact

ParametersExpand Collapse
phone_number: str
ReturnsExpand Collapse
class ContactDeleteResponse:
status: Optional[str]
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"
}