## Use Blacklists
You can register a visitor's email address in the blacklist to avoid processing events that come from this visitor and avoid storing visitor data.
Registering visitor email in the blacklist results in the following:
Incoming events are ignored and not processed where `
User.Email
`Â property contains a blacklisted email address.You cannot update an existing profile with a blacklisted email address using Profile Store API.
You cannot create a new profile if the profile contains a blacklisted email address.
Existing data of blacklisted visitors are removed by schedule, usually every night:
A visitor profile is removed if it contains a blacklisted email address.
Events are removed if `
User.Email
`Â property contains blacklisted email address, or the device ID belongs to a profile that contains blacklisted email address.
Note
Use blacklists for GDPR-compliance only.
## Blacklist properties
The blacklist object contains a fixed set of property fields.
`
BlacklistId [string]
` – The unique identifier of the blacklist object. Generated by the API.`
Email [string]
` – The blacklisted email address. Specified by the developer.`
Scope [string]
` – Optional. The unique identifier of the scope of this blacklist object; specified by the developer.The ID should start with a letter or a number.
The ID should contain up to 64 characters of letters, numbers, and underlines (\_) only.
Do not use CAPITAL letters.
Example:
## Blacklist methods
Column Title | Column Title | Column Title |
GET | api/v1.0/blacklists/ | - To filter results using `querystring ` parameters, see [Filtering, paging, and sorting](🔗).
- Returns HTTP 200 OK with all the blacklist items available in the environment.
- Response body example: |
Column Title | Column Title | Column Title |
POST | api/v1.0/blacklists/ | - Returns HTTP 201 CREATED with the blacklist ID, email, and scope in the response body. - Returns 400 BAD REQUEST if an incorrect post body was specified. - Post body example: |
Response body example:
Column Title | Column Title | Column Title |
DELETE | api/v1.0/blacklists/{id} | - Removes an existing blacklist item. - Returns: - HTTP 200 OK if the blacklist item was removed. - HTTP 404 NOT FOUND if the blacklist item does not exist. |
DELETE | api/v1.0/blacklists/{id}/ClearUserData | - Removes profile for the specified blacklist item. - Returns: - HTTP 200 OK if the data for the blacklist item was removed. - HTTP 404 NOT FOUND if a profile with the email of the specified blacklist item does not exist. |
Response body example:

Note
The `
ClearUserData
` API removes a profile in real-time. If you do not need the real-time deletion of the profile, you can skip calling the `ClearUserData
` API method. However, both the profile and track events of a blacklisted customer are automatically deleted in 24 hours after you create a blacklist item.