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.
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/:userPointIdDELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/email_hash=:emailHashDELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/compartment_id=:compartmentId,user_account_id=:userAccountIdDELETE https://api.mediarithmics.com/v1/datamarts/:datamartId/user_points/user_agent_id=:userAgentIdThe user agent ID looks like vec:xxx.
These operations can be performed manually, or automated from your centralised systems through the API.
Delete UserPoints in bulk
Use a document import when you have a list.
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.
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.
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
DELETEoperations reach your cloud - deleting in the platform does not clean up an export you made earlier.
Related pages
Last updated
Was this helpful?