Uninstall 2019 preserve *.mdf *.ldf no login

First I lost Windows authentication access to SQL Server I still had SQL Server authentication but it was not sysadmin. Subsequently I have lost even that.At the moment I am thinking can I completely uninstall SQL Server and preserve the data. To be attached to a new installation? A surprise to me is I find I have two instances.