deleteMemoryFile method

Future<bool> deleteMemoryFile(
  1. String filename
)

Delete a memory file.

Implementation

Future<bool> deleteMemoryFile(String filename) async {
  final memPath = getAutoMemPath(projectRoot: projectRoot);
  final file = File('$memPath/$filename');
  if (await file.exists()) {
    await file.delete();
    return true;
  }
  return false;
}