/v1/workspaces/{workspace_id}/messagesAuthRTBF: delete every message log row for `recipient` (case-insensitive). Returns the deleted-row count.
The bulk GDPR erase (`messages.erase` in the SDKs): removes every delivery-log row sent to one recipient address in this workspace (with its stored body and events), and strips the address from the cc, bcc and reply-to lists of other rows, in one transaction. Repeating it is harmless (the second call deletes 0 rows).
Path parameters
workspace_id*string · uuidId of the workspace.
Query parameters
recipient*string · emailThe recipient address whose messages to erase (matched case-insensitively).
Response · 200
deleted*numberNumber of rows deleted.
Example
Request
DELETE https://api.mail.productcraft.co/v1/workspaces/{workspace_id}/messages
Authorization: Bearer YOUR_TOKENResponse
{
"deleted": 0
}