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?
Only the user himself or masterkey can delete the user.
– Valdeir Psr
You can use
Parse.Cloud.useMasterKey();
to use the masterkey.– Valdeir Psr
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?
– Heverton Kleidson