Firebase Realtime Database Tutorial for Android – Deleting Data #6

Here is a complete Firebase Realtime Database Guide. This is the sixth video and in this video we will learn.

– Deleting data in Firebase Database

For the details and source code visit

And please don’t forget to LIKE, SUBSCRIBE and SHARE.

android tutorials javatpoint

23 Comments on “Firebase Realtime Database Tutorial for Android – Deleting Data #6”

  1. Thank you, but i have a problem please help me … in my code i want to delete the the current user it's work … and also his information like image , id, username… but after using "removeValue" app crash but the information is deleted..

    my code –>

    final FirebaseUser user =FirebaseAuth.getInstance().getCurrentUser();

    if(user != null){

    user.delete().addOnCompleteListener(new OnCompleteListener<Void>() {


    public void onComplete(@NonNull Task<Void> task) {


    Intent i = new Intent(getContext(), RegisterActivity.class);


    Toast.makeText(getContext(), "Account deactivated", Toast.LENGTH_LONG).show();

    DatabaseReference ref=irebaseDatabase.getInstance().getReference("Users").child(user.getUid());


    }else {

    Toast.makeText(getContext(), "Account could not be deactivated", Toast.LENGTH_LONG).show();





  2. I watched the 1st tutorial video and then the 6th one(this one) directly. If I were to delete one artist by providing the atristId while the database was like in the first video, how do I do it? Please help sir.

  3. sir plzz add video on how to add permission like one person can see only his feedback like manager other person can see all general feedback,only one person can delete data something like this plzz sir.thanking you in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.