Delete a file if it exists
Future<void> deleteFile(String path) async { final file = File(path); if (file.existsSync()) { await file.delete(); } }