MetadataCacheon(‘deleted’)

MetadataCache.on(‘deleted’) method

Called when a file has been deleted. A best-effort previous version of the cached metadata is presented, but it could be null in case the file was not successfully cached previously.

Signature:

on(name: 'deleted', callback: (file: TFile, prevCache: CachedMetadata | null) => any, ctx?: any): EventRef;

Parameters

ParameterTypeDescription
name’deleted’
callback(file: TFile, prevCache: CachedMetadata | null) any
ctxany(Optional)

Returns:

EventRef