I am trying to remove all the children under a node. Is there a way to delete all the items under a node? The structure is like:
let ref = Firebase(url: path)
let myRef = ref.childByAppendingPath(mainId)
// how to delete all items under myRef?
Explained in the docs
The simplest way to delete data is to call removeValue on a reference to the location of that data.