A method of controlling a cooking apparatus, comprising a cleaning process comprising controlling a temperature in a cooking chamber such that the temperature in the cooking chamber is maintained at a preset first temperature for a preset first time, and controlling a temperature in a cooking chamber such that the temperature in the cooking chamber is maintained at a preset second temperature higher than the first temperature for a preset second time. A cooking apparatus comprising, a main body having a cooking chamber formed therein, a convection flow unit comprising a convection heater to heat air in the cooking chamber and a convection fan to circulate the air in the cooking chamber, and a metal foam installed at a periphery of the convection flow unit to collect and decompose cooking gas contained in the air in the cooking chamber.