Good night everyone, can someon help me with a pro...
# support
b
Good night everyone, can someon help me with a problem please? I have an app that have a lot of user registered but just a few of them have an email, how can i delete the ones without email? and why this is happening? Does braze allow a user creation with an empty string as value?
g
You can add transformation for the specific destination to drop the event when email is empty. Something like this
Copy code
export async function transformEvent(event) {
    const email = event.context?.traits?.email;
    if(!email) return
}
Note: If you're using RudderStack hosted data plane, the events are counted in billing even if you drop them in transformations. If you do not want the event for any of the destination, best to drop it on the client side itself.
Does braze allow a user creation with an empty string as value?
Not sure about this one. Check out braze docs or try with a sample event and see the response