how to delete a child firebase swift code example
Example: remove child from firebase swift
// Remove the post from the DB
ref.child("posts").child(postId).removeValue { error in
if error != nil {
print("error \(error)")
}
}
// Remove the post from the DB
ref.child("posts").child(postId).removeValue { error in
if error != nil {
print("error \(error)")
}
}