Skip to content

FileManager.promptForDeletion method

FileManager › promptForDeletion

Official

Prompt the user to confirm they want to delete the specified file or folder.

Signature:

promptForDeletion(file: TAbstractFile): Promise<boolean>

Parameters:

Parameter Type Description
file TAbstractFile the file or folder to delete

Returns: Promise<boolean>A promise that resolves to true if the prompt was confirmed or false if it was canceled

Since: 0.15.0