Mixpanel Community Icon

kapa.ai please tell me how to delete user profile property

·
·

kapa.ai please tell me how to delete user profile property

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Please stand by Aditya G. as I search the knowledge base. I normally take about 15 seconds or so. đź‘‹

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    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"] } ]LBKSThis 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');LBKSIf 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.