For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete user data

Remove a person's data - a single UserPoint, a device point, or many at once.

Your goal

Delete the data the platform holds about a specific person, on request, without waiting for a retention rule to expire it.

Expected outcome

The UserPoint and every document related to it are gone, and you can say so with confidence.

Choose the right operation

Different things can be deleted, and they are not interchangeable.

You want to remove
Operation
Effect on the UserPoint

A person's whole record

UserPoint deletion - API or import

The UserPoint and all related documents are deleted.

A device and its identifiers

Device point deletion import

The device point and its identifiers go; the UserPoint stays.

One identifier

Identifier deletion import

The identifier goes; the UserPoint stays. See Import identifiers.

Delete one UserPoint, by API

Deleting a UserPoint removes it and all related documents - user identifiers, activities, profiles, and the rest. Any identifier can be used to select it:

DELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/:userPointId
DELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/email_hash=:emailHash
DELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/compartment_id=:compartmentId,user_account_id=:userAccountId
DELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/user_agent_id=:userAgentId

The user agent ID looks like vec:xxx.

These operations can be performed manually, or automated from your centralised systems through the API.

Before deleting, you may need to retrieve the data first - for an access request, for instance. See Explore a user profile and Exercise rights of the user.

Delete UserPoints in bulk

Use a document import when you have a list.

UserPoint deletion imports are only supported for datamarts using a UserPoint system version of v202205 or later.

1

Create the document import

Document type USER_POINTS_DELETION, mime type APPLICATION_X_NDJSON. Only ndjson is supported.

2

Create an execution with one identifier per line

Each line is an identifier linked to a UserPoint, or a UserPoint ID directly. For each one, the job finds the associated UserPoint and deletes it, along with all of its identifiers, segments, scenarios, and its profile.

The command shapes are the ones described in Import identifiers, plus USER_POINT with a user_point_id.

3

Read the result

Check total_success, total_failure, and the error file. See reading the result.

Delete device points in bulk

Use this when a device must go but the person's record must stay.

Device point deletion is only supported for datamarts using a UserPoint system version of v202205 or later. It only deletes the device point and its identifiers, not the associated UserPoint.

Create a document import with document type USER_DEVICE_POINT_DELETION and mime type APPLICATION_X_NDJSON, then send one user agent per line:

To pass device point IDs directly - udp:987654 - use the USER_AGENT type. Note the contrast with Import identifiers, where a udp: value rejects the job: that import deletes an identifier, this one deletes a device point.

Verify

  • A lookup on the deleted person's identifiers returns nothing.

  • For a device point deletion, the UserPoint still exists, without that device.

  • The execution's success count matches the number of lines.

  • Downstream copies are updated too: if you run a datamart replication, the DELETE operations reach your cloud - deleting in the platform does not clean up an export you made earlier.

Last updated

Was this helpful?