A unit for receiving and treating capsules containing a basic preparation for an ice cream product including: a housing configured to receive a capsule containing a basic preparation for an ice cream product an unloading device adapted to trigger expulsion of the capsule from the housing.The unloading device includes an impact portion adapted to engage the capsule and a locking portion configured to lock the unloading device to the unit.