Amazon announced on Friday that it would stop operating its food delivery service in India by the year-end.