deleteFile method

Future<bool> deleteFile(
  1. String path
)

Deletes a file on the Frame device.

Args: path (String): The full path to the file to delete.

Returns: Future

Implementation

Future<bool> deleteFile(String path) async {
  final String? response = await frame.bluetooth.sendString(
    'frame.file.remove("$path");print("d")',
    awaitResponse: true,
  );
  return response == "d";
}