kapa.ai How can I delete events?
Please stand by Rinitha R. as I search the knowledge base. I normally take about 15 seconds or so. đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
There are several ways to delete events in Mixpanel, depending on your specific needs:
1. Data Deletion Tool
For problematic data (like PII, implementation bugs, or bot traffic): 1. Navigate to Data Deletion in Project Settings 2. Click 'Request an Event Deletion' 3. Select the event you want to delete 4. Choose a 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 requestNote that deletion will be permanent after 7 days, but the data will be hidden immediately. This feature is only available to users with Owner or Admin roles and has usage limitations.Data Clean-Up
2. Dropping Events
If you want to stop collecting specific events going forward: 1. Go to Lexicon 2. Select the event you want to drop 3. Click the Drop icon 4. Confirm the actionThis will prevent Mixpanel from storing any new data for that event, but previously collected data will remain.Dropping Data
3. Delete and Re-import (ETL Approach)
For more complex scenarios, you can: 1. Export the data 2. Transform it (remove problematic data) 3. Delete the original data 4. Re-import the cleaned dataThis is useful when you need to fix issues like wrong timestamps or sensitive data.Data Clean-Up ETL Approach
4. Delete JSON Pipelines
If you need to delete a JSON pipeline: 1. Go to the Integrations page 2. Find the pipeline you want to manage 3. Click the 3-dot menu 4. Select Delete PipelineData Pipelines FAQ
5. API Deletion
For programmatic deletion, you can use Mixpanel's APIs, such as the Annotations API for deleting annotations.Remember that events in Mixpanel are generally immutable, so in many cases, you'll be hiding rather than truly deleting data. For specific user data deletion, consider using the Distinct ID Deletion API instead of the Data Deletion tool.
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.
kapa.ai Why are some events, that are defined in my backend not reflecting in my Lexicon?
Let me check the knowledge base for you again. One moment! 📚
There are several reasons why events defined in your backend might not be appearing in your Mixpanel Lexicon. Here are the most common causes:
1. Events Not Being Received by Mixpanel
Your backend might be defining events, but they may not be successfully reaching Mixpanel: - Debug Mode: Enable debug mode in your SDK to confirm requests are actually being sent to Mixpanel Debugging: Missing or Incomplete Events- Data Residency Issues: Ensure you're using the correct API host that matches your project's data residency (US, EU, or India) Missing or Incomplete Events- Network Issues: Check your browser console or logs for failed requests to Mixpanel's API Debugging with the Browser Console
2. Events Are Hidden
Events might be reaching Mixpanel but are hidden in Lexicon: - Manually Hidden: Project admins can hide events in Lexicon to reduce clutter Hiding Data- Inactive Events: Events that haven't fired in the last 30 days are automatically hidden from dropdown menus Inactive Events and Properties
3. Event Skipping
Your implementation might have conditional logic that prevents events from being tracked in certain scenarios: - Implementation Logic: Your code might have conditions that prevent tracking in specific circumstances Event skipping
4. Event Approval Settings
If you're on an Enterprise plan with Event Approval enabled: - New Events Hidden by Default: New events might be hidden until approved by an admin Event Approval
5. Lexicon UI vs. Actual Data
The Lexicon UI doesn't always show a complete picture of your data: - 30-Day Lookback: Lexicon typically only shows events from the last 30 days Lexicon Schemas API- Schema Differences: The Lexicon UI shows both events with schemas and recent events, while the Lexicon Schemas API only returns events with associated schemas Lexicon Schemas APITo troubleshoot, I recommend: 1. Verify events are being sent using debug mode 2. Check if events are hidden in Lexicon 3. Look for any conditional logic in your implementation 4. If you're on Enterprise, check your Event Approval settings 5. Try manually searching for your events in Lexicon, as they might be hidden but still present
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.
kapa.ai in Lexicon, even if there aren't any interactions in my events, it should appear in my event list?
Let me check the knowledge base for you again. One moment! 📚
Based on the knowledge sources, there are specific rules about when events appear in your Lexicon event list, even if there are no interactions with them:
Events Visibility in Lexicon
Events appear in Lexicon under two main conditions: 1. Events sent within the last 30 days - Even with no interactions, events that have been sent to your project within the last 30 days will appear in Lexicon
2. Events with associated Lexicon Schemas - Events will appear if they have an associated schema, which happens when: - A schema is created through the Lexicon Schema API - Metadata is added to the event (like descriptions, tags, etc.) - The event is imported via CSV importAs mentioned in the documentation: "The Lexicon UI contain entities that were sent to your project within the last 30 days or has an associated Lexicon Schema." Lexicon Schemas API
Inactive Events
If your events haven't been fired within the last 30 days and don't have any associated schema or metadata, they will be considered "inactive" and won't appear in Lexicon dropdown menus: "Mixpanel's report dropdown menus hide events that have not been fired within the last 30 days. The only exception are events that have been modified via the Lexicon interface, eg: by adding a description, hiding the event, changing the display name, etc." Check for Hidden Events and Properties
To Make Older Events Appear
If you want older events to appear in Lexicon: - Fire a single instance of that event - Add metadata to the event through Lexicon (description, tags, etc.) - Search for the event by name in the dropdown menu (if you know the exact name)This is why some events defined in your backend might not be showing up in Lexicon if they haven't been tracked recently or don't have associated metadata.
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.