5

Can I delete not authenticated user's account? The docs offers such a way:

FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
user.delete()
    .addOnCompleteListener(new OnCompleteListener<Void>() {
        @Override
        public void onComplete(@NonNull Task<Void> task) {
            if (task.isSuccessful()) {
                Log.d(TAG, "User account deleted.");
            }
        }
    });

Is this the only way to delete account?

madim
  • 774
  • 10
  • 22
  • 1
    please look into ans http://stackoverflow.com/questions/38114689/how-to-delete-a-firebase-user-from-android-app/38114865#38114865 – Maheshwar Ligade Jul 18 '16 at 06:05
  • 1
    @MaheshwarLigade so, there is no way to do any operations with account if the user is not signed in? – madim Jul 18 '16 at 08:08
  • IF you want to delete then user must have to signed in. – Maheshwar Ligade Jul 18 '16 at 09:09
  • or you can delete the user manually using the firebase console – Wilik Jul 18 '16 at 11:32
  • this question is an old one but should give you some toughts. http://stackoverflow.com/questions/23383826/remove-a-user-from-firebase – adolfosrs Jul 18 '16 at 12:59
  • 2
    *firebaser here* We are working on making admin functionality available for Firebase Authentication in the server SDKs. Until that is released (no ballparks yet), the only way to delete a user is to sign them in or through the console. – Frank van Puffelen Jul 18 '16 at 14:35

0 Answers0