<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`FileManager`](FileManager) › [`promptForDeletion`](FileManager/promptForDeletion)
## FileManager.promptForDeletion() method
Prompt the user to confirm they want to delete the specified file or folder
**Signature:**
```typescript
promptForDeletion(file: TAbstractFile): Promise<boolean>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>file</code> | [`TAbstractFile`](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
0.15.0