I am facing this issue
'NSBatchDeleteRequest' is only available on iOS 9.0 or newer
class func delete(placeId:Int64) {
let context = CoreDataStack.getContext()
let fetch = NSFetchRequest<NSFetchRequestResult>(entityName: "Place")
fetch.predicate = NSPredicate(format: "id = \(placeId)")
let request = NSBatchDeleteRequest(fetchRequest: fetch)
do {
_ = try context.execute(request)
} catch {
fatalError("Failed to execute request: \(error)")
}
CoreDataStack.saveContext()
}
what was the code that is used prior to iOS 9 for same funtionality ?