Delete child from firebase [duplicate]

This question already has answers here: How to remove child nodes in firebase android? (4 answers) Closed 4 years ago.

I use following code to add a child and set a value to it in FireBase.

 String ref = Constants.Client+"/"+Constants.firebaseProjects+"/"+Constants.ProjectName+"/xyz";
 final DatabaseReference ref = FirebaseDatabase.getInstance().getReference(FirebaseRefer);
 ref.child("mockChild").push().setValue("")

What can I do to delete the “mockChild” ?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)