If you want to remove the entire child, then just use: ref. child(“mockChild”). removeValue(); 27 Eyl 2017
Read moreHow do I delete a child from Realtime Database?
The simplest way for deleting data is to call removeValue() on a reference to the location of that data. We can also delete data by specifying null as the value for another write operation such as setValue() or updateChildren().
Read more