Ehat to do depenr on which build you have installed.
If you have build 26200.xxxx then delete content of folder C:\Windows\SoftwareDistribution\Download and then delete WindowsSelfHost key from registry as described in step 2).
If you have any Beta build 26220.xxxx then you can go to released version without clean install.
1). Download ISO for released version 25H2 https://www.microsoft.com/en-us/software-download/windows11?msockid=13c4190001016d9f341a0d8c008e6cab
2). Delete WindowsSelfHost key from registry to get device out of insider program
Open regedit Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost Right click it and select delete. Restart.
3). Mount downloaded ISO (right click and select mount).
4). On mounted image run setup.exe to start in-place update to go to public version 25H2
In any case take backup all files you want to keep.