A device (101) for removing material, such as manure, present on a floor (30)comprises a frame, a drive for moving the device over the floor and a first and a second floor-treating member. The two floor-treating members (104, 105) extend substantially over the width of the device and are mounted on a holder (121a, b). The holder is held by the frame by means of a connection structure. The first and the second floor-treating member are located in longitudinal direction at a distance from each other. The connection structure comprises a first rotational connection with a first, substantially horizontal rotational centre line, about which the holder with the two floor-treating members is rotatable with respect to the frame, while changing the orientation of the holder in a vertical longitudinal plane of the device. The first rotational centre line is substantially transverse to said longitudinal plane.