kapa.ai please tell me how to delete user profile property
To delete a user profile property in Mixpanel, you have several options depending on which SDK or API you're using:
Using the HTTP API
You can use the Engage API with the $unset
operator to permanently remove properties from a profile: LBKS[ { "$token": "YOUR_PROJECT_TOKEN", "$distinct_id": "user123", "$unset": ["property_to_delete"] } ]LBKS
This takes a JSON list of string property names and permanently removes the properties and their values from a profile. Delete Property
Using SDKs
iOS (Swift)
LBKSMixpanel.mainInstance().getGroup(groupKey: "company", groupID: "mixpanel").unset(properties: "employee_count")LBKS
iOS (Objective-C)
objectivec
[[mixpanel getGroup:@​"company" groupID:@​"mixpanel"] unset:@​"employee_count"];LBKS```
Android
LBKSmixpanel.getGroup('company','mixpanel').unset('employee_count');LBKS
React Native
LBKSmixpanel.getGroup('company','mixpanel').unset('employee_count');LBKS
Flutter
LBKSmixpanel.getGroup('company','mixpanel').unset('employee_count');LBKS
Python
'employee_count'
])LBKS```
Node.js
LBKSmp.groups.unset('company', 'mixpanel', 'employee_count');LBKS
If you need to delete multiple properties, you can pass an array of property names to the $unset
operator in the API call or use the appropriate method in your SDK.If you're approaching the 2000 property limit per profile, removing properties using $unset
can help you stay under this limit, as mentioned in the User Properties FAQ.
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.