removeEntity

abstract suspend fun <T : Any> removeEntity(clazz: KClass<T>, id: String)

Removes the entity of type T with the given id.

Parameters

clazz

The KClass of the entity type.

id

The unique identifier of the entity to remove.

Type Parameters

T

The entity type (must be annotated with @Entity).