A machine for filling containers with a liquid substance, the machine being configured to fill containers of a first type and to fill containers of a second type, wherein the machine comprises: - a carousel filler, rotatable about an axis of rotation and equipped with a plurality of filling units; - a first device for loading the containers onto the carousel filler; - a second device for removing the containers of the first type from the carousel filler; - a third device for removing the containers of the second type from the carousel filler; wherein each filling unit comprises a plate, which forms a resting surface for a bottom of a container to be filled, and a filling head that is configured to receive a mouth of the container to be filled and to dispense the liquid substance towards an internal volume of the container, each filling unit being configured to fill containers of the first type and to fill containers of the second type, the filling head being configured to receive the mouth of a container of the first type and, alternatively, the mouth of a container of the second type, wherein the filling heads and the respective plates are positioned on the periphery of the carousel filler and, as the carousel filler rotates about the axis of rotation, they move along a circumferential path about the axis of rotation, wherein the first device, the second device and the third device are positioned in respective angular positions on said circumferential path, relative to which the third device is in an angular position interposed between the first device and the second device, wherein the third device is configured to assume an operating condition, in which, in use, the third device removes the container that is located on a plate passing through the angular position of the third device, and a non-operating condition, in which, in use, the third device allows the container on the passing-through plate to continue the path towards the second device, characterised in that the third device comprises a movable body having a conveying lane for the containers, wherein, in the operating condition, the movable body is positioned close to the carousel filler and the conveying lane is substantially tangential to the circumferential path so that the container on the passing-through plate enters the conveying lane, and wherein, in the non-operating condition, the movable body is positioned away from the carousel filler and the conveying lane is outside the circumferential path. wherein the machine comprises: - a carousel filler, rotatable about an axis of rotation and equipped with a plurality of filling units; - a first device for loading the containers onto the carousel filler; - a second device for removing the containers of the first type from the carousel filler; - a third device for removing the containers of the second type from the carousel filler; - a carousel filler, rotatable about an axis of rotation and equipped with a plurality of filling units; - a first device for loading the containers onto the carousel filler; - a second device for removing the containers of the first type from the carousel filler; - a third device for removing the containers of the second type from the carousel filler; wherein each filling unit comprises a plate, which forms a resting surface for a bottom of a container to be filled, and a filling head that is configured to receive a mouth of the container to be filled and to dispense the liquid substance towards an internal volume of the container, each filling unit being configured to fill containers of the first type and to fill containers of the second type, the filling head being configured to receive the mouth of a container of the first type and, alternatively, the mouth of a container of the second type, wherein the filling heads and the respective plates are positioned on the periphery of the carousel filler and, as the carousel filler rotates about the axis of rotation, they move along a circumferential path about the axis of rotation, wherein the first device, the second device and the third device are positioned in respective angular positions on said circumferential path, relative to which the third device is in an angular position interposed between the first device and the second device, wherein the third device is configured to assume an operating condition, in which, in use, the third device removes the container that is located on a plate passing through the angular position of the third device, and a non-operating condition, in which, in use, the third device allows the container on the passing-through plate to continue the path towards the second device, characterised in that the third device comprises a movable body having a conveying lane for the containers, wherein, in the operating condition, the movable body is positioned close to the carousel filler and the conveying lane is substantially tangential to the circumferential path so that the container on the passing-through plate enters the conveying lane, and wherein, in the non-operating condition, the movable body is positioned away from the carousel filler and the conveying lane is outside the circumferential path.