The invention concerns a harvesting machine comprising a harvesting unit (4) and a system (8) for recovering the crop (F) detached by said harvesting unit, said recovering system comprising at least one conveyor (11) adapted to recover the crop (F) detached by the harvesting unit (4) and to convey said crop along a conveying path (12) of said system, the recovering system (8) comprising a removing device (16) for removing debris elements that might be conveyed with the detached crop (F), said removing device comprising two rotary organs (17) which form therebetween a mouth (18) that is adjacent to the conveying path (12) in order to be able to catch debris elements protruding from the conveyor (11), said mouth converging into an inner gripping zone (19) formed by a narrow gap (20) between said rotary organs, said removing device further comprising a drive unit (21) for the rotation of at least one of the two rotary organs (17) in order to extract from the conveyor (11) any debris element caught by the mouth (18) and then gripped between said rotary organs.