---
title: Code Examples
slug: data-privacy-code-examples
docTags: 
createdAt: 2026-06-16T03:07:41.730Z
---

:::hint{type="warning"}
## Legacy API — sunsets June 1, 2027

This page documents the original mailfloss API, which is being retired on **June 1, 2027**. New integrations should use the [v1 API](https://developers.mailfloss.com/quickstart).
:::

## Deletion endpoint

```shell
curl -X POST \
  --url https://api.mailfloss.com/delete?api_key={api_key} \
  -d '{"emails":["email_address1", "email_address2"]}' -H "Content-Type: application/json"
```
