While it is possible to delete any type of Mixpanel data, only certain data types can be removed from within the user interface.
User profile properties can easily be removed from a Mixpanel project.
Events and event properties can be deleted using the GDPR API.
Events and Event Properties
Event data is immutable in Mixpanel, which means it cannot be edited or deleted once it's been sent to your project.
With that said, there are actions that can be taken to exclude the data from your analysis or to remove event data in necessary situations.
Let the Events Inactivate
For all Mixpanel users, events that have not been sent to your project in 30 days and event properties that have not been sent to your project in 28 days will automatically be hidden from your reporting.
The events will still be available in the project's raw data, but will not be visible in the UI.
View more information about Mixpanel's Data Retention Policy to learn more about the retention of raw data.
Hide Events and Properties
All users can hide events, event properties, and user profile properties in your Mixpanel project through Lexicon.
Tips on Hiding Events and Properties
Events and properties are hidden on the project level, meaning if you hide an event or property, it will be hidden for all users of that project.
To completely stop events from being recorded in your Mixpanel project, you’ll need to remove the code that sends those events to Mixpanel.
- Events that have been hidden through Lexicon will still be visible in Live View and in the Activity Feed within User Profiles.
Deleting User Profile Properties
If you’re just trying to delete a few specific user profile properties from certain user profiles, you can do so from the Explore report.
Hover over the user profile property in the user profile you want to select, and click the trash icon. This will remove that property only for the specific user - it won’t delete the user profile property from all profiles.
If you need to delete more than a few user profile properties, it is possible to delete user profile properties programmatically through the Engage API using the $unset method.
Detailed instructions on deleting user profiles through the Engage API. Mixpanel also provides an API module to make it easy to unset a property from your profiles in bulk.
When unsetting user profile properties, keep in mind that if you continue to update properties from the implementation (and/or through previous versions of the app for mobile implementations), they will continue to re-populate the drop down even after they've been $unset.
You can also hide user profile properties from Lexicon.
Delete Sensitive Event Data
In certain situations, it may be necessary to delete events in order to protect the security and privacy of users, or to satisfy data delete requests. Use the form provided in a Mixpanel project to request the deletion of event data.