delete function
Deletes the file at path.
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.
@Throwing(ArgumentError)
@Throwing(DeleteException,
reason:
'if the file at path does not exist or if path is a directory.')
Implementation
void delete(String path, {bool ask = false}) =>
_Delete().delete(path, ask: ask);