Block a button with a code

I created an app that I use to fill in my database with a save button, a delete button (only what I wrote) and a delete button if I make a mistake in my database.
the problem I had is that I clicked on delete in the database, but I hadn’t written anything, and the consequence is that it erased me all my database. I would like to create a button with a code so that this situation does not happen again. can you help me thank you.

Please send a screenshot of the block

Firebase ?

i did this, but it doesn’t work

voila comme cela sa fonctionne merci

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.