Skip to content

FileView.onDelete method

FileView › onDelete

Unofficial

Updates the view if it contains the deleted file.

Signature:

onDelete(file: TFile): Promise<void>

Parameters:

Parameter Type Description
file TFile The file that was deleted.

Returns: Promise<void>A promise that resolves when the view is updated.