GDPR delete a recipient
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.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Header Parameters
Abschnitt betitelt „Header Parameters“Unique key for idempotent requests. Responses cached 24h.
Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“object
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.
Example
trueFalse 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.
Responses
Abschnitt betitelt „Responses“Data deleted and anonymized (or previewed when dry_run=true)
object
object
True if this was a preview (not a real deletion)
Rows hard-deleted (only when dry_run=false)
Rows anonymized (only when dry_run=false)
Tables that were modified (only when dry_run=false)
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)
Whether any data exists for this email (only when dry_run=true)
Total number of records found (only when dry_run=true)
What would be deleted or anonymized (only when dry_run=true)
object
Entries in import error lists (deleted 30 days after the import)
object
Consent log entries (anonymised on deletion, kept three years)
Custom Audiences the address is in, with its status there. Since 2.2.0.
object
Further organisation tables that carry the address (legacy tables, automation runs)
object
Whether additional data may exist in active (not switched-off) data sources such as shop connectors (only when dry_run=true)
Storage locations the preview could not check; non-empty means email_found may be wrong (only when dry_run=true)
Present only when a prior GDPR deletion exists for this email (only when dry_run=true)
object
False when deleted with block=false: import, API and manual entry may add the address again
Set when the person signed up again themselves and confirmed; the block of this deletion is lifted since then
Set when the deletion block was turned into an advertising block
Data sources named at the deletion
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.
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}Daily deletion cap reached (only when dry_run=false)
object
object
Example generated
{ "error": { "code": "example", "message": "example", "status": 1 }}