public static void deleteFile(string path, bool useCloud, bool usePath) { if (useCloud) { ReadWrite.cloudFileDelete(path); } else { if (usePath) { path = ReadWrite.PATH + path; } File.Delete(path); } }