Skip to content

FileManager.promptForFileDeletion method

FileManager › promptForFileDeletion

Unofficial

Prompt the user to delete a file.

Signature:

promptForFileDeletion(file: TFile): Promise<void>

Parameters:

ParameterTypeDescription
fileTFileThe file to delete.

Returns: Promise<void>A promise that resolves when the deletion prompt is handled.