deleteAny(path, [recursive], [move_to_trash])
Class: SwingUI.
Description:
Deletes a file or directory synchronously.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
Path to the directory to delete |
|
|
|
boolean |
false |
Delete directory and its contents. (only has effect if |
|
|
boolean |
false |
Move file to trash instead of completely deleting it. |
Returns:
- Returns true on success, or throws error on failure
Type: boolean
Throws:
- Error: When the file path is invalid.
- Error: When access is denied.
- Error: When failed to delete the file or directory.
