delete(model:where:includeSubclasses:)
Removes each model satisfying the given predicate from the persistent storage during the next save operation.
Declaration
func delete<T>(model: T.Type, where predicate: Predicate<T>? = nil, includeSubclasses: Bool = true) throws where T : PersistentModelParameters
- model:
The type of the model to remove.
- predicate:
The logical condition to use when determining if the context should remove a particular model. The default value is
nil. - includeSubclasses:
A Boolean value that indicates whether the context includes subclasses of the specified model type when evaluating models to remove. The default value is
true.