delete function

Future<void> delete(
  1. String path
)

Deletes the file at path.

If the file does not exists a DeleteException is thrown.

delete("/tmp/test.fred", ask: true);

If the path is a directory a DeleteException is thrown.

Implementation

Future<void> delete(String path) async => _Delete().delete(path);