'Is there a way to delete selected (multiple) items in my real-time firebase in android studio?

Using removeValue I need to pass the id for the item but I need to be able to select 1 or more items which I already have and then be able to delete those items selected by the user. Right now I can delete from the recyclerview but I need any selected items to be deleted from my database, how do I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source