delete function
Deletes the file at path
.
If the file does not exists a DeleteException is thrown.
delete("/tmp/test.fred", ask: true);
If ask
is true then the user is prompted to confirm the file deletion.
The default value for ask
is false.
If the path
is a directory a DeleteException is thrown.
Implementation
void delete(String path, {bool ask = false}) =>
_Delete().delete(path, ask: ask);