deleteFile method

void deleteFile(
  1. String filePath
)

Implementation

void deleteFile(String filePath) async {
  try {
    await fileOperations.deleteFile(filePath);
    sendResponse('250 File deleted');
  } catch (e) {
    sendResponse('550 Failed to delete file $e');
    logger.generalLog('Error deleting file: $e');
  }
}