records are not deleting from realtime database 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)")
}
}