Nothing is erased by doing so, except the association of your server with your plex account.
All the server data are still there, even all the shares to other users are still there.
All you need to do is to connect the server again to your account.
If your server is running on Windows, see Unable to access server after password reset - #116 by OttoKerner on how to do it.