Is it possible to delete all events triggered by a user when their user profile is deleted?
Hi Karen L., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Yes, when you delete a user profile in Mixpanel, it permanently deletes the profile along with all of its properties. However, this doesn't automatically delete the events associated with that user.To delete all data associated with a specific user, including both their profile and events, you should use Mixpanel's GDPR/CCPA API. This API allows you to create a deletion task that will: 1. Delete all data, including events and user profile data 2. Remove all information associated with the specified distinct_idsAccording to the documentation: > "Creates a task that specifies a list of users in a particular project to delete. This will schedule a deletion job that will delete all data, including events and user profile data, for the users specified by distinct_ids."GDPR and CCPA APIThe deletion process may take up to 30 days to complete, and you can cancel it until it reaches the "STARTED" stage.It's also important to note that deleting data from Mixpanel will remove it permanently, but it won't prevent new data from being collected. If you want to stop tracking a user completely, you should also opt them out of tracking using Mixpanel's opt-out methods available in their client-side libraries: End User Data ManagementThis comprehensive approach ensures that you both delete existing user data and prevent future tracking for that user.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.