how to remove user properties in mixpanle-browser sdk i have some duplicated properties in user profile want to performa cleanup
Hi Rahul T., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> 👋
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
To remove user properties from a user profile using the mixpanel-browser (JavaScript) SDK, you should use the .people.unset() method. This method deletes unwanted properties from a user's profile.**Example Usage:**LBKS// Identify the user first mixpanel.identify('1234');LBKS// Remove a single property mixpanel.people.unset('property_name');LBKS// Remove multiple properties mixpanel.people.unset(['property1', 'property2']);LBKSThis will permanently remove the specified properties and their values from the user's profile, which is useful for cleaning up duplicates or outdated data. Make sure to call identify before unset to ensure the operation targets the correct user profile Docs: Javascript SDK - Other Types Of Profile Updates.For bulk or programmatic cleanup, you can also use the Engage API's $unset operation or the people_unset method in the mixpanel-utils library Docs: Data Clean-Up.
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.
How much time does it take to delete those user properites
