Delete Contact
curl --request DELETE \
--url https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}import requests
url = "https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyContacts
Delete Contact
Delete a contact from a list
DELETE
/
api
/
v1
/
contact-lists
/
{listId}
/
contacts
/
{id}
Delete Contact
curl --request DELETE \
--url https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}import requests
url = "https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/contact-lists/{listId}/contacts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyPermanently delete a contact from a list.
This action is irreversible. Consider suppressing the contact instead if you want to preserve their history.
Path Parameters
string
required
The unique list ID (e.g.,
lst_abc123).string
required
The unique contact ID (e.g.,
cnt_abc123).Examples
import { MailBreeze } from "mailbreeze";
const mailbreeze = new MailBreeze({ apiKey: "sk_live_xxx" });
const contacts = mailbreeze.contacts("lst_abc123");
await contacts.delete("cnt_abc123");
console.log("Contact deleted");
from mailbreeze import MailBreeze
client = MailBreeze(api_key="sk_live_xxx")
contacts = client.contacts("lst_abc123")
await contacts.delete("cnt_abc123")
print("Contact deleted")
client := mailbreeze.NewClient("sk_live_xxx")
contacts := client.Contacts("lst_abc123")
err := contacts.Delete(ctx, "cnt_abc123")
if err != nil {
log.Fatal(err)
}
fmt.Println("Contact deleted")
$mailbreeze = new MailBreeze('sk_live_xxx');
$mailbreeze->contacts->delete('lst_abc123', 'cnt_abc123');
echo "Contact deleted";
let client = Client::new("sk_live_xxx");
let contacts = client.contacts("lst_abc123");
contacts.delete("cnt_abc123").await?;
println!("Contact deleted");
curl -X DELETE "https://api.mailbreeze.com/api/v1/contact-lists/lst_abc123/contacts/cnt_abc123" \
-H "Authorization: Bearer sk_live_xxx"
Response
Returns204 No Content on success with no response body.
Errors
| Code | HTTP Status | Description |
|---|---|---|
CONTACT_NOT_FOUND | 404 | Contact with this ID doesn’t exist |
LIST_NOT_FOUND | 404 | List with this ID doesn’t exist |
When to Delete vs Suppress
| Action | Use Case | Email History | Can Re-subscribe |
|---|---|---|---|
| Delete | Remove completely, GDPR requests | Lost | Yes (as new contact) |
| Suppress | Stop emails but keep history | Preserved | Yes (with status change) |
For GDPR deletion requests, use delete. For unsubscribes or bounces, use suppress to maintain deliverability history.