how can I delete events older than 12 months for both user and group level profiles?
Hi Iva Đ., 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
To delete events older than 12 months for both user and group level profiles in Mixpanel, you'll need to follow different processes for each. Here's how you can approach this:For User Profiles: Mixpanel provides an Engage API that allows you to delete user profiles. You can use this API to programmatically delete profiles that are older than 12 months. According to the User Profiles documentation, you can delete user profiles either via the Users page or programmatically using the Engage API.For Group Profiles: Similarly, you can delete group profiles using the Groups API. The same User Profiles documentation mentions that group profiles can be deleted either via the Users page or programmatically using the Groups API.However, it's important to note that Mixpanel has a specific data retention policy for events. According to the GDPR Compliance documentation:1. Events are automatically deleted after 5 years on an ongoing basis from all projects. 2. User data is retained indefinitely, but customers can delete profiles using the Engage API.Given this information, for events older than 12 months: 1. You don't need to manually delete events, as Mixpanel automatically deletes them after 5 years. 2. If you specifically want to delete events older than 12 months, you would need to contact Mixpanel support for a custom data retention window.For user and group profiles older than 12 months: 1. Use the Engage API to delete user profiles. 2. Use the Groups API to delete group profiles.Remember to exercise caution when deleting data, as this process is irreversible. If you need more specific guidance or have questions about implementing these deletions, it's recommended to contact Mixpanel's support team for assistance.
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.