Avoid certain foods. Starting 1 week before your colonoscopy, do not eat raw fruits and vegetables, whole kernel corn, grains or seeds, such as poppy or sesame, or nuts. These foods are hard to digest and may make it hard for your doctor to see during your colonoscopy.