purge
abstract suspend fun purge(type: ResourceType, id: String, forcePurge: Boolean = false)
Content copied to clipboard
Purges a resource from the database based on resource type and id without any deletion of data from the server.
Parameters
type
The ResourceType
id
The resource id Resource.id
isLocalPurge
default value is false here resource will not be deleted from LocalChangeEntity table but it will throw IllegalStateException("Resource has local changes either sync with server or FORCE_PURGE required") if local change exists. If true this API will delete resource entry from LocalChangeEntity table.
Sources
androidJvm source
Link copied to clipboard