Delete transactional logs

Use the log deletion endpoint to start a deletion job.

Define the recipient address to erase from the database and call the transactional deletion endpoint with the following properties.

curl --request DELETE \
--url https://api.brevo.com/v3/smtp/log/recipient@brevo.com \
--header 'accept: application/json'

Execute the call.

After you specify the address and execute the call, the response returns a process_id indicating that an asynchronous deletion job is running.

Optional: retrieve the status of the asynchronous job by querying the ā€œReturn the informations for a processā€ endpoint.

curl --request GET \
--url https://api.brevo.com/v3/processes/352351 \
--header 'accept: application/json'

Verify the actions.

Option 1: once the deletion completes, verify it by opening the logs view. Type the recipient address — the result set should be 0.

Option 2: verify the deletion by querying the following endpoint.