deleteFile(file_path, [move_to_trash])
Class: SwingUI.
Description:
Deletes a file or moves it to trash synchronously.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
Path to the file to delete |
|
|
|
boolean |
false |
Move file to trash instead of completely deleting it. |
Returns:
- Returns
trueon success or if the file didn't exist; otherwise returnsfalseon failure
Type: boolean
