How to delete/remove nodes on Firebase

后端 未结 6 1406
悲&欢浪女
悲&欢浪女 2020-12-07 22:27

I\'m using Firebase for a web app. It\'s written in plain Javascript using no external libraries.

I can \"push\" and retrieve data with \'.on(\"child_added\")\', but

6条回答
  •  暖寄归人
    2020-12-07 22:43

    In case you are using axios and trying via a service call.

    URL: https://react-16-demo.firebaseio.com/
    Schema Name: todos
    Key: -Lhu8a0uoSRixdmECYPE
    
    axios.delete(`https://react-16-demo.firebaseio.com/todos/-Lhu8a0uoSRixdmECYPE.json`). then();
    

    can help.

提交回复
热议问题