deleteSync method

  1. @override
void deleteSync({
  1. bool recursive = false,
})
override

Synchronously deletes this FileSystemEntity.

The exact details vary according to the FileSystemEntity:

Implementation

@override
void deleteSync({bool recursive = false}) {
  if (recursive) {
    throw UnsupportedError('Recursive flag is not supported by Node.js');
  }
  fs.unlinkSync(_absolutePath);
}