<How can I delete parent of child without know the...
# stackoverflow
u
How can I delete parent of child without know the parent id but I know the parent's child values in firebase realtime database I need to delete parent of child.("title") which has value $title but here the problem is I don't know the id of the parent, this is my code val bundle:Bundle?=intent.extras val title = bundle?.getString("getTitle") ?: "" val uidFromAuthentication = auth.currentUser val ref = FirebaseDatabase.getInstance().reference.child("History").child(uidFromAuthentication?.uid.toString()) ref.get() .addOnSuccessListener { val dataSize = it.childrenCount val getTitleOfNews =...