Solved

How delete user profile from Mixpanel?

  • 10 June 2022
  • 5 replies
  • 85 views

Hi.  I try to delete end  user profile with API( https://api.mixpanel.com/engage#profile-delete). But I get response {"error":"data, missing or empty","status":0}. I try with different $distinct_ID, but always I get same response. Why?

icon

Best answer by linyee 13 June 2022, 03:06

View original

5 replies

Badge +2

Hi Lurri,

Are you calling the API directly from https://developer.mixpanel.com/reference/delete-profile? Does it work for you via the UI?

Do verify if you are sending the JSON payload to Mixpanel as a data query parameter(not request body).

E.g.

curl --location --request POST 'https://api.mixpanel.com/engage?verbose=1' \--header 'Content-Type: application/x-www-form-urlencoded' \--data 'data=xxyour_token%xxx'

 

Hope this helps.

Hi, Linyee. Yes, I use code from  https://developer.mixpanel.com/reference/delete-profile. I integrate request in my Swift App,  and get response: {"error":"data, missing or empty","status":0}.  I repeat request with Postman use same parametres (POST, Parameters($token: token APP, $distinc-id: distinc-id , $delete: null, $ignore_alias:False, verbose:1) and get same response. URL Postman: https://api.mixpanel.com/engage?$token=tokenAPP$distinct_id=distincID&$delete=null&$ignore_alias=false&verbose=1#profile-delete

I can delete user profile via UI.

Thank you.

I found mistake in my request. Thanks.

But, I cant delete user profile via API in App. I get response 200 (0). When I use web interface https://developer.mixpanel.com/reference/delete-profile, i can delete user profile. But if I use same code, user don’t remove. Why is this happening? I use SWIFT.

I solved, Thanks.

Reply