A method for an at least partial erasure of data stored in a mobile station, the method comprising: - determining a need for erasing the memory content of the mobile station (302, 304, 306, 308, 310) on the basis of checking a unique equipment identity, IMEI, of the mobile station, the checking being performed in the mobile communication network and carried out on the basis of comparison of the unique equipment identity, IMEI, to equipment identities included in an equipment register, EIR, - forming, in response to the network element providing mobile communication services receiving from an equipment register element information, according to which the mobile station that has contacted the mobile communication network is defined as barred in the equipment register, a message to be sent from the mobile communication network to the mobile station for erasing the memory content of the mobile station, - transmitting the message to the mobile station for erasing memory content, - receiving the message in the mobile station, characterized in that in the method: - said message is a predefined data element of a signalling message of a mobility management protocol (402, 412) between the network element and the mobile station in response to a signalling message (400, 410) from the mobile station and comprises an indicator of an erasure command, and - providing a control unit in the mobile station for: - detecting the need for an at least partial erasure of the memory content in response to the reception of said predefined data element of the signalling message for erasing the memory content of the mobile station, - selecting storage areas of the mobile station to be erased, and - overwriting the selected storage areas. - determining a need for erasing the memory content of the mobile station (302, 304, 306, 308, 310) on the basis of checking a unique equipment identity, IMEI, of the mobile station, the checking being performed in the mobile communication network and carried out on the basis of comparison of the unique equipment identity, IMEI, to equipment identities included in an equipment register, EIR, - forming, in response to the network element providing mobile communication services receiving from an equipment register element information, according to which the mobile station that has contacted the mobile communication network is defined as barred in the equipment register, a message to be sent from the mobile communication network to the mobile station for erasing the memory content of the mobile station, - transmitting the message to the mobile station for erasing memory content, - receiving the message in the mobile station, - said message is a predefined data element of a signalling message of a mobility management protocol (402, 412) between the network element and the mobile station in response to a signalling message (400, 410) from the mobile station and comprises an indicator of an erasure command, and - providing a control unit in the mobile station for: - detecting the need for an at least partial erasure of the memory content in response to the reception of said predefined data element of the signalling message for erasing the memory content of the mobile station, - selecting storage areas of the mobile station to be erased, and - overwriting the selected storage areas. - detecting the need for an at least partial erasure of the memory content in response to the reception of said predefined data element of the signalling message for erasing the memory content of the mobile station, - selecting storage areas of the mobile station to be erased, and - overwriting the selected storage areas.