How to remove the comment data stored in Realtime Database by using Kotlin
I have a problem with delete data from my Firebase Data. When I click on the delete button, it will not work.
Code of adding comment on a post
private fun postComment()
{
val commentsRef = FirebaseDatabase.getInstance().reference
.child("Comment")
.child(postId!!)
.child(commentId!!)
val commentId = commentsRef.push().key
val commentsMap = HashMap()
commentsMap["commentID"] = commentId!!
commentsMap["comment"] =...