Plex settings are stored in the Windows user account.
The best strategy would be to move these settings and metadata to a dedicated partition or drive (an SSD preferably) in advance, so they are not affected by whatever operation you have to do with user accounts.