Spacer device for the two-phase treatment of infections of anatomic and reverse shoulder prostheses, including a humeral component equipped with a stem, a head component and means for connecting or articulating the humeral component with the head component.