delete static method

void delete(
  1. String path
)

Deletes a file.

Implementation

static void delete(String path) {
  try {
    final file = File(path);
    if (file.existsSync()) {
      file.deleteSync();
    }
  } catch (e) {
    throw DeepLinkException('Failed to delete file $path', e);
  }
}