deleteAppEntities(ofType:)
Deletes all app entities of the specified type from the current index.
Declaration
func deleteAppEntities<Entity>(ofType entityType: Entity.Type) async throws where Entity : IndexedEntityParameters
- entityType:
One of your app’s entity types. For example, specify
MyEntity.Typeto delete all instances ofMyEntityyou added to the index.
Discussion
This method removes all entities of the specified type from the app’s indexes. You might call this method as a precursor to indexing a new set of entity objects.