B
B
bzotsss2021-05-09 11:51:33
JavaScript
bzotsss, 2021-05-09 11:51:33

How to remove selected items in firebase using fetch api?

Hello ! How can I delete some emails via fetch request? in firebase? For me, the problem is that I do not understand what exactly I should specify in the fetch bodymethod delete . I get the data that I need through get , and then I make an array out of them, and the output is this:

 ["test 1 ", "test 2 ", "test 3 ", "test 4 ", "test 5 ", "test 6", "test 7 ", "test 8"]
Then, through post, I add more elements there. How can I selectively delete from there, for example, 1,4,5 emails. array? The data structure in firebase is like this:6097a1b5ad0e4823606486.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question