0👍
The best is to use the Fireabase JavaScript SDK for such interaction between your web client and the Firebase database. This is easier and better than using Axios.
Have a look at the documentation:
https://firebase.google.com/docs/database/web/start
and in particular there for learning how to delete an item.
https://firebase.google.com/docs/database/web/read-and-write#delete_data
It is simply a matter of doing remove() on a reference to the location of that data.
In order to integrate the SDK with a Vue.js application, have a look at these very good tutorials:
https://www.youtube.com/watch?v=FXY1UyQfSFw&list=PL55RiY5tL51qxUbODJG9cgrsVd7ZHbPrt and in particular videos #13 and following for the Firebase part.
- [Vuejs]-Append the search result in the input search field vue
- [Vuejs]-How to modify deep vuex data with v-model
Source:stackexchange.com