Using custom events to combine or filter events

Cleaning up user profiles

If you want to clean up old user profile properties that are no longer being used, you can use our Engage API to remove these old user properties. We also provide a ‘people_unset’ method in the Mixpanel-utils Library here.

2. Deleting problematic data

Data Deletion allows you to delete noisy or sensitive data from your Mixpanel project, helping you maintain the integrity of your analytics project, and preserve a clear view of user behavior.

You might find this useful if you:

In addition to permanently deleting the chosen data from our servers, we will immediately hide the data in your project so your users don’t accidentally view or analyze incorrect/sensitive data.

Unlike Hiding Events or Data Views, Data Deletion affects your entire project, and can allow you to remove a subset of problematic events from an otherwise useful event.

Is data deletion right for my problem?

Data Deletion is a severe action with permanent consequences. Thus, we recommend it only in a few scenarios:

ScenarioRecommendation
Bot attack sent spam events I don’t want to consider in my analysisYes, use Data Deletion with targeted event property filters to delete spam event data.
Due to an implementation issue, duplicate events were ingestedYes, use Data Deletion with targeted event property filters to delete duplicate event data.
Due to an implementation issue, events were sent with wrong timestampYes, use Data Deletion with targeted event property filters to delete affected data, and then re-upload with corrected timestamps. Please refer to our ‘Reminders with ETL Approach’ section on this page as you proceed
We have sensitive data that we accidentally ingested that we legally cannot have and need to urgently deleteYes, use Data Deletion with targeted event property filters to delete events with sensitive data. You can then re-upload data without sensitive PII data included. Please refer to our ‘Reminders with ETL Approach’ section on this page as you proceed
I no longer want an event/ property entirely, as it’s no longer relevant to my teamNo, we recommend you actually use Dropping and Hiding Data instead, as these will hide the events from your team, without using up your limited Data Deletion requests.
I don’t need to legally delete some events with sensitive data, but I don’t want some of my users to be able to see the sensitive dataNo, we recommend you use Mark Properties as Classified to remove the data from the analysis experience for certain user types, while keeping accessible for other users.

Who can use Data Deletion?

You can use the Data Deletion tool in these scenarios:

How to use

⚠️

Data Deletion is irreversible. Exercise caution when using this feature.

image

Once you’ve identified the problematic data, and confirmed you want to delete:

  1. Navigate to the Data Deletion section in Project Settings
  2. Click ‘Request an Event Deletion’
  3. Select which event you want to delete
  4. Select time range (event time cannot be more than 180 days in the past)
  5. Add any Event property filters if needed
  6. Validate in the preview that the right data is being deleted
  7. Submit deletion request

Data Deletion will be permanent and irreversible in 7 days after submitting. Until that time, you may undo the action. Ensure that you carefully review and confirm your selections before proceeding.

During this intermediate 7 day period, we will automatically hide the data in your Deletion request from your users, so they don’t accidentally analyze incorrect or sensitive data.

Undoing data deletion

You may undo Data Deletion requests for only 7 days after submitting, after which deletions become permanent. To do so, take the following steps:

image

  1. Navigate to the Data Deletion section in Project Settings
  2. Locate the Deletion request you wish to undo in the table
  3. Click ‘Undo’ button in the Deletion Data column

Reminders with ETL approach

Frequently asked questions

How does Data Deletion impact billing?

When billing runs for the current month, deleted events will not be included in the tally calculation for that current month.

Do you support property deletion?

Not as of now. If you have events with properties you want to delete, you should do an Extract, Transform, Load approach. The goal would be to run a raw export on the event and then delete the bad imported data. Once this data has been transformed, re-import the data into the project. Then, call this event something slightly different and then hide the original one

Please refer to ‘Reminders with ETL Approach’ section as you proceed, and submit feedback (accessible in-app with our help menu) if this is a blocker for you and your team

Other resources

Data Volume MonitoringAccess Security

Was this page useful?