Stay away from solid foods at least 8 hours before your surgery. this can reduce your risk or vomiting and lung complications. Most clear liquid and juices are still permitted before surgery.