// Remove the post from the DB ref.child("posts").child(postId).removeValue { error in if error != nil { print("error (error)") } }