An apparatus for roasting coffee beans, the apparatus comprising: a chamber in which coffee beans can be received for roasting, a device for generating a current of air in order to agitate and to roast the coffee beans received by the chamber , a heater for heating air so that the so heated air is blown by the device into the chamber in order to generate the heated current of air, and a control unit for switching the apparatus between a roasting mode and a discharging mode, wherein the control unit is functionally connected to the device for generating a current of air and/or to the heater, wherein the chamber is delimited by a bottom , a top , and a sidewall extending from the bottom to the top , wherein the sidewall comprises a discharge port , which is selectively moveable between a closed position and an open position, wherein in the roasting mode the discharge port is in the closed position and the device is adapted to generate a heated current of air to roast the coffee beans received by the chamber , and wherein in the discharging mode the discharge port is in the open position and the apparatus is arranged to use the current of air generated by the device to drive the coffee beans through the discharge port to be discharged from the chamber , wherein the discharge port is arranged to be closer to the bottom than to the top , wherein the bottom comprises an air inlet, and wherein the device is arranged to blow air through said inlet in order generate the current of air inside of the chamber , and wherein the discharge port is arranged at a distance from the bottom or at the bottom above the air inlet. a chamber in which coffee beans can be received for roasting, a device for generating a current of air in order to agitate and to roast the coffee beans received by the chamber , a heater for heating air so that the so heated air is blown by the device into the chamber in order to generate the heated current of air, and a control unit for switching the apparatus between a roasting mode and a discharging mode, wherein the control unit is functionally connected to the device for generating a current of air and/or to the heater, wherein the chamber is delimited by a bottom , a top , and a sidewall extending from the bottom to the top , wherein the sidewall comprises a discharge port , which is selectively moveable between a closed position and an open position, wherein in the roasting mode the discharge port is in the closed position and the device is adapted to generate a heated current of air to roast the coffee beans received by the chamber , and wherein in the discharging mode the discharge port is in the open position and the apparatus is arranged to use the current of air generated by the device to drive the coffee beans through the discharge port to be discharged from the chamber , wherein the discharge port is arranged to be closer to the bottom than to the top , wherein the bottom comprises an air inlet, and wherein the device is arranged to blow air through said inlet in order generate the current of air inside of the chamber , and wherein the discharge port is arranged at a distance from the bottom or at the bottom above the air inlet. <EOS>