delete static method
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);
}
}