delete method Null safety

Future<void> delete()

Delete the root directory, database, and stores

This will remove all traces of this root from the user's device. Use with caution!

Implementation

Future<void> delete() async {
  await FMTCRegistry.instance.uninitialise(delete: true);
  await FMTC.instance.rootDirectory.directory.delete(recursive: true);
  FMTC._instance = null;
}