ios - Removing All Items Under A Node Firebase -
i trying remove children under node. there way delete items under node? structure like:
lastmessages - mainid - timestampedid - keys:values
what want is, using mainid
, delete items under it. there's 1 timestampedid
@ time lastmessages. that's why thought should delete items under mainid
before writing new value. there way achieve that; or there better ways thought?
let ref = firebase(url: path) let myref = ref.childbyappendingpath(mainid) // how delete items under myref?
simply call myref.removevalue()
explained in docs
the simplest way delete data call removevalue on reference location of data.
Comments
Post a Comment