Cooking apricot kernels helps remove harmful substances (20). Soaking, boiling, and deskinning may help remove cyanide from them.