It is generally not recommended to eat when you have appendicitis, as this can worsen the condition. Instead, you should focus on getting plenty of rest and staying hydrated. If you are in severe pain, your doctor may prescribe pain medication. Surgery is typically required to remove the appendix, and it is usually recommended that you do not eat or drink anything for at least six hours before the procedure. Recovery time from appendicitis surgery is typically fairly short, and most people are able to return to their normal activities within a week or two.