The Document I am trying to Delete
I want to delete a document which is further having collections inside it. I am running this code
db.collection("users").document(uid)
.delete()
.addOnCompleteListener {
if (it.isSuccessful) {
Log.i("logcat", "Success")
} else {
Log.i("logcat", "Fail")
}
}
The output in Logcat is Success still I see the document present on the console. However when i mention the complete reference(db.collection("users").document("uid).collection("amount")........
), individual documents inside it gets deleted but I need to delete the document with all its collections inside. Am I trying it the wrong way or some limitation of Firebase?