Any personal data of persons granted international protection or a national humanitarian status in accordance with this Regulation should be stored for five years from the date of registration at national level. That five-year period should be considered to be sufficient for the purposes of the admission procedure, given that the majority of such persons will have resided for several years in the Union and will have obtained citizenship of a Member State. Given that third-country nationals or stateless persons who, during the three years before admission, were refused admission to a Member State because there were reasonable grounds for considering that they would be a danger to the community, public policy, security or public health of the Member State examining the admission file or on the ground that an alert has been issued in the Schengen Information System or in a national database of a Member State for the purposes of refusing entry should be refused admission pursuant to this Regulation their data should be stored for a period of three years from the date on which the negative conclusion on admission was reached. Given that third-country nationals who, during the three years before admission, have not given or have withdrawn their consent to be admitted to a particular Member State could be refused admission under the terms of this Regulation, the data should be stored for a period of three years from the date of discontinuation. The storage period should be shorter in certain special situations where there is no need to keep personal data for that length of time. Personal data belonging to a third-country national or to a stateless person should be erased immediately and permanently once that person obtains citizenship of a Member State.