deleteAppEntities(identifiedBy:ofType:)
Deletes entities with the specified identifiers and type from the current index.
Declaration
func deleteAppEntities<Entity>(identifiedBy identifiers: [Entity.ID], ofType type: Entity.Type) async throws where Entity : IndexedEntityParameters
- identifiers:
The IDs of the entities you want to delete. Get the identifier value of an entity from its Id 8t2ws property.
- type:
One of your app’s entity types. For example, specify
MyEntity.Typeto delete entities with theMyEntitytype in the index.
Discussion
Use this method to remove only the specified entities from the current index. You might call this method as a precursor to indexing a new set of entity objects. To remove all entities of the specified type, call the deleteAppEntities(ofType:) method instead.