Zum Inhalt springen

GDPR delete a recipient

DELETE
/recipients
Code sample: Shell / cURL
curl --request DELETE \
--url https://rocketem.fotone.io/api/v2/recipients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "dry_run": false, "block": true }'

Required scope: recipients:delete

Permanently deletes all data for this email across all storage locations (recipients, sends, events, tracking, test data, preferences). Adds to suppression list (legal block), anonymizes tracking data, and logs the deletion in the GDPR audit log. This action is irreversible.

The legal block stops marketing mails and keeps imports, API writes and manual entries from adding the address again. It does not hold back transactional mails, and the person’s own sign-up with a confirmation click (form) lifts it; POST /recipients/doi stays refused.

block: false deletes the same data but adds no legal block, so imports and API writes may add the address again (an account closed without an objection). An existing unsubscribe entry of the person stays.

Works even if the email has no recipient record — tracking data, events, and other records are still deleted/anonymized. Returns 404 only if no data exists at all for this email.

Daily cap: 10,000 deletions per organisation.

Idempotency-Key
string
<= 255 characters

Unique key for idempotent requests. Responses cached 24h.

Media typeapplication/json
object
email
required
string format: email
dry_run

When true, runs a read-only preview: reports what would be affected without deleting. No GDPR audit entry, no rate-limit consumption. Use this to verify a deletion before making it.

boolean

Example

true
block

False deletes without a legal block: imports and API writes may add the address again. Default true keeps them out; only the person’s own confirmed sign-up lifts the block.

boolean
default: true

Data deleted and anonymized (or previewed when dry_run=true)

Media typeapplication/json
object
data
object
dry_run

True if this was a preview (not a real deletion)

boolean
deleted
boolean
email_hash
string
rows_deleted

Rows hard-deleted (only when dry_run=false)

integer
rows_anonymized

Rows anonymized (only when dry_run=false)

integer
tables_affected

Tables that were modified (only when dry_run=false)

Array<string>
legal_block

Whether a protected block stands after the call, also one from an earlier deletion; the person can lift a legal block by signing up again themselves (only when dry_run=false)

boolean
email_found

Whether any data exists for this email (only when dry_run=true)

boolean
total_records

Total number of records found (only when dry_run=true)

integer
would_affect

What would be deleted or anonymized (only when dry_run=true)

object
recipient
boolean
events
integer
sends
integer
blacklist
boolean
dsn
boolean
test_recipients
integer
system_mail_log
integer
import_errors

Entries in import error lists (deleted 30 days after the import)

integer
custom_tables
Array<object>
object
consent_log

Consent log entries (anonymised on deletion, kept three years)

integer
audiences

Custom Audiences the address is in, with its status there. Since 2.2.0.

Array<object>
object
audience
string
status
string
trashed
boolean
other_tables

Further organisation tables that carry the address (legacy tables, automation runs)

Array<object>
object
has_external_source

Whether additional data may exist in active (not switched-off) data sources such as shop connectors (only when dry_run=true)

boolean
incomplete

Storage locations the preview could not check; non-empty means email_found may be wrong (only when dry_run=true)

Array<string>
deletion_record

Present only when a prior GDPR deletion exists for this email (only when dry_run=true)

object
action
string
deleted_at
string format: date-time
source
string
api_token_label
string
nullable
user_name
string
nullable
rows_deleted
integer
nullable
rows_anonymized
integer
nullable
legal_block

False when deleted with block=false: import, API and manual entry may add the address again

boolean
lifted_by_signup_at

Set when the person signed up again themselves and confirmed; the block of this deletion is lifted since then

string format: date-time
nullable
converted_at

Set when the deletion block was turned into an advertising block

string format: date-time
nullable
source_names

Data sources named at the deletion

Array<string>

Example generated

{
"data": {
"dry_run": true,
"deleted": true,
"email_hash": "example",
"rows_deleted": 1,
"rows_anonymized": 1,
"tables_affected": [
"example"
],
"legal_block": true,
"email_found": true,
"total_records": 1,
"would_affect": {
"recipient": true,
"events": 1,
"sends": 1,
"blacklist": true,
"dsn": true,
"test_recipients": 1,
"system_mail_log": 1,
"import_errors": 1,
"custom_tables": [
{}
],
"consent_log": 1,
"audiences": [
{
"audience": "example",
"status": "example",
"trashed": true
}
],
"other_tables": [
{}
]
},
"has_external_source": true,
"incomplete": [
"example"
],
"deletion_record": {
"action": "example",
"deleted_at": "2026-04-15T12:00:00Z",
"source": "example",
"api_token_label": "example",
"user_name": "example",
"rows_deleted": 1,
"rows_anonymized": 1,
"legal_block": true,
"lifted_by_signup_at": "2026-04-15T12:00:00Z",
"converted_at": "2026-04-15T12:00:00Z",
"source_names": [
"example"
]
}
}
}

No data found for this email (only when dry_run=false). With block=false this is checked first: nothing is logged and no daily cap is used.

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Daily deletion cap reached (only when dry_run=false)

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}