deleteSync method
Synchronously deletes this FileSystemEntity.
The exact details vary according to the FileSystemEntity:
Implementation
@override
void deleteSync({bool recursive = false}) {
if (recursive) {
if (statSync().type == file.FileSystemEntityType.directory) {
Directory(path).deleteSync(recursive: true);
return;
}
}
fs.unlinkSync(_absolutePath);
}