kapa.ai what is the most efficient way to purge "auto page view" events from a project that no longer wants to collect them.
To efficiently purge "Auto Page View" events from your Mixpanel project, you have several options depending on whether you want to stop collecting new events or remove existing ones:
Stop collecting new Auto Page View events
1. Disable Autocapture in your JavaScript SDK: If you're using Autocapture, you can disable it completely or configure it to exclude page views:
autocapture: {
pageview: false, // disable just pageview tracking
click: true,
input: true,
scroll: true,
submit: true
}
});
```LBKS
Or disable Autocapture entirely:
```LBKS mixpanel.init('YOUR_PROJECT_TOKEN', {
autocapture: false
});
```LBKS [Mixpanel SDKs: Javascript](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#autocapture)LBKS2. **Drop the event in Lexicon**:
As a project owner, you can drop the "[Auto] Page View" event in Lexicon to prevent new data from being stored:
1. Navigate to Lexicon
2. Select the "[Auto] Page View" event
3. Click the Drop icon
4. Confirm the drop action
Note that this will take a few hours to process and only affects new data, not historical data.
[Lexicon: Describe your events and data using a dictionary](https://docs.mixpanel.com/docs/data-governance/lexicon#dropping-data)
Remove existing Auto Page View events
If you need to remove historical data, you can use Data Deletion: 1. Navigate to Data Deletion in Project Settings 2. Click 'Request an Event Deletion' 3. Select the "[Auto] Page View" event 4. Select the time range (must be within the last 180 days) 5. Add any event property filters if needed 6. Validate the preview to ensure you're deleting the right data 7. Submit the deletion requestThe data will be hidden immediately but will be permanently deleted after 7 days. This action is irreversible. Data Clean-Up
Important limitations
- Data Deletion is only available for data within the past 180 days - You must be a Project Owner or Admin - Your project can't have more than 10 deletes in the past calendar month - Your event volumes must be below 5 billion events per monthIf you're concerned about billing, remember that dropping events in Lexicon won't retroactively remove them from your billing calculations, but will prevent new events from being counted.
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.
Let me check the knowledge base for you again. One moment! 📚
For deleting Mixpanel events older than 180 days, the standard Data Deletion tool in the UI has limitations. Based on the knowledge sources, here are your options:
Options for deleting data older than 180 days
1. GDPR/CCPA API: For complete deletion of user data (including events), you can use the GDPR/CCPA API which doesn't have the 180-day limitation:
-H "Authorization: Bearer YOUR_OAUTH_TOKEN" -d '{"compliance_type":"CCPA", "distinct_ids":["user_id_1"]}'
```LBKS
This approach deletes all data for specific users identified by their distinct_ids, including events older than 180 days. You can add up to 1999 distinct IDs in a single request.
[GDPR and CCPA API (v3)](https://github.com/mixpanel/docs/blob/main/reference/GDPR%20API/overview.md)LBKS2. **Contact Mixpanel Support**: For bulk deletion of specific events (rather than user-based deletion) that are older than 180 days, you would need to contact Mixpanel support as this isn't available through self-service tools.
Important considerations
- Data retention policy: Mixpanel automatically deletes events after 5 years on an ongoing basis from all projects, so very old data will eventually be removed automatically. GDPR Compliance- Alternative approach: If you're concerned about these events affecting your analysis, but don't necessarily need to delete them for compliance reasons, consider using Data Views or Lexicon's hiding feature to exclude them from your reports.- Export before deletion: If you need to preserve this data elsewhere before deletion, consider using the Raw Export API to export the data first.Remember that all deletion actions are permanent and cannot be undone after the grace period (7 days for standard deletions, no grace period for GDPR/CCPA deletions).
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.