I am able to set Klaviyo and custom properties with API calls but cannot clear/blank out the property value. I can not do it through the interface or with the API. For example if I set Location to “NY” and want to then set it to blank, neither the interface or API will allow it. Through the interface I can remove the property. I would prefer blanking it out but if that is not possible is there a way to remove the property through the API?
Solved
Clearing property value via API
Best answer by David To
Hello
Great question!
You can certainly remove profile properties through API using the $unset command as
In addition, you can also use something like the following if you were working with an identify request, or whatever values you have in properties set in the customer_properties section of a track request:
{
"token":"abc123",
"properties":{
"$email":"person@email.com",
"$unset":["property_to_unset_key"]
}
}I hope this helps!
David
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

