This article helps you:
Understand the difference between drop and block filters
Learn how to block and delete events or properties
Learn how to remove corrupt data from analysis
Data on Amplitude is immutable once ingested. Amplitude Data provides you with several methods to prevent invalid or incorrect data from appearing in your Amplitude analyses. You can create a drop filter, create a block filter, block events and properties, or delete events and properties. This article describes each technique, as well as the differences between them.
In some cases, you may find you've loaded incorrect data and want to filter it out from queries. Amplitude Data's drop filters feature allows you to remove specific event data from your charts at query time. These events are not deleted, and they can be restored to your charts simply by editing or deleting the drop filter. Drop filters do not apply to data exports.
As query-side filters that are not applied during data ingestion, drop filters do not affect your event volume limit.
To create a drop filter, follow these steps:
Make sure you’re on main
, as filters are not accessible from any other branch
In the left-hand sidebar, click Filters, then select the Drop Filters tab.
Click + Create Drop Filter to open the Filter Configuration fly-out panel.
Click Select property … to include any relevant properties that will refine your filter. For example, perhaps you want to filter out all purchase events that come from a specific geographical location. Simply select that location from the list of properties.
Use exact strings to match values as you cannot use comparative operators (such as "Contains") for drop filters.
Specify the time range for the events you’d like Amplitude Data to drop-filter out.
When you’re ready, click Drop Data to initiate the drop filter.
If you want to edit or delete a drop filter, click on its name in the drop filter list. In the fly-out panel that appears on the right, make your edits and click Update Drop Filter.
Drop filters do not affect the user activity view.
You can also set up a block filter. This differs from a drop filter in that data filtered out by a drop filter is recoverable, while any data filtered out by a block filter cannot be recovered because it is never ingested in the first place.
You can use a block filter to block individual events or properties, but it’s especially useful for blocking data by IP address.
If you are using a block filter to block specific events or properties, you should also update your instrumentation so that it no longer sends the unwanted data.
To create a block filter, follow these steps:
main
, as filters are not accessible from any other branchYou can prevent Amplitude Data from collecting data on a specific event, event property, or user property by blocking it. Amplitude Data will immediately stop processing data for that event or property until you decide to unblock it.
Because Amplitude Data does not collect any data for blocked events or properties, this means you cannot recover any information about them at any future date. If you do not wish to display a specific event or property but think you may someday need this data, consider hiding the event or property instead.
To block an event or property, follow these steps:
main
branch. You can only block events and properties from there.You can't block custom events.
If you ever outgrow events or properties that are part of your Amplitude Data tracking plan, you can easily delete them.
Deleting an event will block the event from ingestion and remove the event from chart drop-downs, meaning you will no longer be able to query on the event. Keep in mind that when you delete an event or event property, it will still appear in your historical data. Deleting an event simply means that Amplitude will no longer collect data for that event, and that the event will no longer count toward your monthly event volume or instrumentation limit. You should also update your instrumentation to stop sending the deleted event type.
Deleting a user property will not remove the property from events that have already been ingested. This means that past events in a user's event stream will still contain the user property data.
You can't delete events or properties in main
.
To delete events and event properties you no longer need, follow these steps:
main
.If you change your mind after you've deleted an event or property, you can easily undelete it. To do so, follow these steps:
You may want to delete a user entirely. You can do so with the User Privacy API. This API lets you delete a user, their events, and any associated data, and will help you keep compliant with data laws and regulations.
Thanks for your feedback!
June 5th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2024 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.