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:
```
[ { "$token": "YOUR_PROJECT_TOKEN", "$distinct_id": "user123", "$unset": ["property_to_delete"] } ]
LBKSThis takes a JSON list of string property names and permanently removes the properties and their values from a profile. [Delete Property](https://github.com/mixpanel/docs/blob/main/reference/Ingestion%20API/user-profiles/profile-delete-property.md)
Using SDKs
iOS (Swift)
Mixpanel.mainInstance().getGroup(groupKey: "company", groupID: "mixpanel").unset(properties: "employee_count")
iOS (Objective-C)
objectivec
[[mixpanel getGroup:@โ"company" groupID:@โ"mixpanel"] unset:@โ"employee_count"];
Android
mixpanel.getGroup('company','mixpanel').unset('employee_count');
React Native
mixpanel.getGroup('company','mixpanel').unset('employee_count');
Flutter
mixpanel.getGroup('company','mixpanel').unset('employee_count');
Python
mp.group_unset('company','mixpanel', [
'employee_count'
])
Node.js
mp.groups.unset('company', 'mixpanel', 'employee_count');
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.
