How to delete a document from Firestore in recyclerView in android.
I have auto-generated documents id’s I Want to delete that auto-generated id’s data and If you know how to delete the document then you can post your answer according to you.
Talk Programming , Career, Mental Health, Talk Personal Finance ❤️???? Post a query and receive responses ✅
Post a query and receive responses. Ask anything, ASK ITSNP ❤️????
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your RecyclerView.Adapter, in the onBindViewHolder() method, set an OnClickListener on the view that should delete the document. In the onClick() method of the OnClickListener, call the delete() method on the document, passing in the ID of the document to delete.
same exact question with same photo
In the same way, you delete a document from Firestore. Create a reference that points to the exact image, by specifying all elements and then simply delete it.