Delete cached items
Deletes cached items. If types are not specified, all cached entities are deleted.
For checking the latest status of credentials or requesting a new MSO (for mdocs) or a new LVVC (for credentials using LVVC revocation method), you can instead force the system to retrieve from external resources during revocation check.
Related guide: Caching
Function
- React Native
- iOS
- Android
deleteCache(types: CacheType[] | undefined): Promise<void>
func deleteCache(types: [CacheTypeBindingDto]?) async throws
fun `deleteCache`(`types`: List<CacheTypeBindingDto>?)
Parameter
- React Native
- iOS
- Android
export enum CacheType {
DID_DOCUMENT = "DID_DOCUMENT",
JSON_LD_CONTEXT = "JSON_LD_CONTEXT",
STATUS_LIST_CREDENTIAL = "STATUS_LIST_CREDENTIAL",
VCT_METADATA = "VCT_METADATA",
JSON_SCHEMA = "JSON_SCHEMA",
TRUST_LIST = "TRUST_LIST",
}
public enum CacheTypeBindingDto {
case didDocument
case jsonLdContext
case statusListCredential
case vctMetadata
case jsonSchema
case trustList
}
enum class CacheTypeBindingDto {
DID_DOCUMENT,
JSON_LD_CONTEXT,
STATUS_LIST_CREDENTIAL,
VCT_METADATA,
JSON_SCHEMA,
TRUST_LIST;
companion object
}
See Cached entities for a description of all cache item types.