How to delete User using Parse (Error: insufficient auth to delete user )

Asked

Viewed 34 times

1

Hi, I’m creating an app using Parse to save data in Heroku. I’m having a hard time deleting Users. I can delete objects from other collections with the command:

objeto.deleteInBackground(new DeleteCallback() {
    @Override
    public void done(ParseException e) {
           Toast.makeText(getContext(),"Exercicio removido.",Toast.LENGTH_SHORT).show();
           }
  });

But when it comes to deleting Users, it doesn’t work. It leaves Parseexception and with the value of insufficient auth to delete user. Could someone help me solve this problem?

  • 1
  • 1

    You can use Parse.Cloud.useMasterKey(); to use the masterkey.

  • Is there a way you can show me an example? I saw this in some forums and tried to put it there, but it displays error when I put the ". Cloud" asks if I want to create a variable or similar things. Could you help me by showing me in an example?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.