Apples are treated with various chemicals, including diphenylamine, which may promote the formation of nitrosamines, a class of chemicals linked to cancer. The Harvard T.H. Chan School of Public Health recommends washing apples with water and baking soda to remove pesticide residues, but this step alone may not be enough to eliminate all the chemicals.