How long can I get rid of the accommodation information of my ID card in the hotel?

For rooms managed by the hotel computer, such as staying for one night on June 22nd and applying for check-out on June 23rd, the computer will display the room number with a "raise your hand" icon. The accommodation information in the management system will be deleted when you check out. However, some of them are backed up (for future reference, usually disappear automatically after 3 months).