I query to the server following
let query = PFQuery(className: "posts")
query.whereKey("uuid", equalTo: Ncell.uuidLbl.text!)
query.findObjectsInBackground { (objects:[PFObject]?, error:Error?) in
if error == nil {
for object in objects! {
object.deleteInBackground(block: { (success:Bool, error:Error?) in
if success{
}
})
}
}
}
Rather than using a loop and deleting each object individually, I want to know if it would be possible to delete all the found objects at once to save on requests.