Skip to main content

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

deleteCache(types: CacheType[] | undefined): Promise<void>

Parameter

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",
}

See Cached entities for a description of all cache item types.