A device for attaching an identity tag and removing a tissue sample comprising: an ear-tag applicator; a male part of the identity tag (male tag) and a female part of the identity tag (female tag) placed on said applicator a means to hold a sample container below a male tag and above female tag and below an ear to which the identity tag is to be attached and from which tissue sample is to be removed; wherein the means to hold the sample container below the male tag and above the female tag is a flap, that further connects the sample container to the male tag the male tag having a removable tissue cutting element; the flap having at least one holder reversibly connected to the removable tissue cutting element and a clamp reversibly connected to the sample container; the male tag having, by means of the ear-tag applicator a downward movement path toward the female tag; and at least one part of the sample container or one part of the removable tissue cutting element having a feature that supports movement of the sample container out of the movement path of the male tag upon releasing of the clamp, wherein the sample container and the clamp remain in the movement path of the male tag when there is a connection between the clamp and the sample container, wherein the connection between the holder and the removable tissue cutting element and the connection between the clamp and the sample container are released after a tissue sample is removed which releasing is caused by the descending movement of the ear-tag applicator but before the male tag enters the female tag part, wherein when the connections are released the sample container retains the removable tissue cutting element or at least a part thereof and the sample container moves out of the movement path of the male tag. an ear-tag applicator; a male part of the identity tag (male tag) and a female part of the identity tag (female tag) placed on said applicator a means to hold a sample container below a male tag and above female tag and below an ear to which the identity tag is to be attached and from which tissue sample is to be removed; wherein the means to hold the sample container below the male tag and above the female tag is a flap, that further connects the sample container to the male tag the male tag having a removable tissue cutting element; the flap having at least one holder reversibly connected to the removable tissue cutting element and a clamp reversibly connected to the sample container; the male tag having, by means of the ear-tag applicator a downward movement path toward the female tag; and at least one part of the sample container or one part of the removable tissue cutting element having a feature that supports movement of the sample container out of the movement path of the male tag upon releasing of the clamp, wherein the sample container and the clamp remain in the movement path of the male tag when there is a connection between the clamp and the sample container, wherein the connection between the holder and the removable tissue cutting element and the connection between the clamp and the sample container are released after a tissue sample is removed which releasing is caused by the descending movement of the ear-tag applicator but before the male tag enters the female tag part, wherein when the connections are released the sample container retains the removable tissue cutting element or at least a part thereof and the sample container moves out of the movement path of the male tag.