The incident came after a photo of a glass and dessert placed on the dashboard of a SpiceJet plane went viral.
Reports revealed that the plane was hovering at 37,000 feet at the time the photo was taken.
After backlash against the photo, India’s aviation regulator issued a warning to the airline.
SpiceJet announced that it is investigating the issue and that the two pilots who allegedly took the picture were taken off.
“Appropriate disciplinary action will be taken against them once the investigation is complete,” an airline spokesperson told The Times of India.
Aviation expert Mohan Ranganathan, who shared the picture for the first time on Twitter, said, “Even a small amount of coffee spilled on electronic components will disrupt systems. This is a criminal act.”
Indian aviation rules allow pilots and crew to have food and drink in the cockpit only under strict rules.
For example, all glasses need to be capped and carried on a tray to avoid spills.