Machine for removal and extraction of a lid for paint and/or dye containers or cans, comprising: - a centering element comprising an abutment portion configured to abut against an outer top wall of the container to align the machine above the container and to prevent the container from moving, without exerting any pressure force upon said outer top wall of the container, in any operating configuration or spatial arrangement of the gripping device; - a support structure, fixed to said centering element, - a gripping device configured to selectively act upon at least two points of a lid of the container to disengage the lid from the container and to hold the lid; wherein said gripping device is configured to take a first operating configuration, wherein it is non-influential upon a protruding portion of the lid, since it does not act upon said protruding portion of the lid, and a second operating configuration; wherein said gripping device comprises at least two gripping elements, each configured to selectively act upon one protruding portion of the lid, and a support element, to which said at least two gripping elements are operationally connected; each gripping element comprising a coupling portion having a shape complementary to the shape of the protruding portion of the lid, in which said protruding portion of the lid can be at least partly housed; - a first moving device supported by said support structure and configured to move said gripping device along a vertical axis between at least one first position, proximal to said centering element, and at least one second position, away from said centering element; - a second moving device configured to move said at least two gripping elements between different operating configurations of the gripping device, wherein said second moving device comprises a linear actuator and a driving element configured to act upon a first matching portion of said gripping elements; wherein said gripping elements and said second moving device are configured so that the thrust action exerted along said vertical axis on the first matching portion of the gripping elements by the second actuator device, through said driving element, is transformed into a straight movement of the coupling portion along an axis perpendicular to said vertical axis. - a centering element comprising an abutment portion configured to abut against an outer top wall of the container to align the machine above the container and to prevent the container from moving, without exerting any pressure force upon said outer top wall of the container, in any operating configuration or spatial arrangement of the gripping device; - a support structure, fixed to said centering element, - a gripping device configured to selectively act upon at least two points of a lid of the container to disengage the lid from the container and to hold the lid; wherein said gripping device is configured to take a first operating configuration, wherein it is non-influential upon a protruding portion of the lid, since it does not act upon said protruding portion of the lid, and a second operating configuration; wherein said gripping device comprises at least two gripping elements, each configured to selectively act upon one protruding portion of the lid, and a support element, to which said at least two gripping elements are operationally connected; each gripping element comprising a coupling portion having a shape complementary to the shape of the protruding portion of the lid, in which said protruding portion of the lid can be at least partly housed; - a first moving device supported by said support structure and configured to move said gripping device along a vertical axis between at least one first position, proximal to said centering element, and at least one second position, away from said centering element; - a second moving device configured to move said at least two gripping elements between different operating configurations of the gripping device, wherein said second moving device comprises a linear actuator and a driving element configured to act upon a first matching portion of said gripping elements;