1. Open the RD Licensing Manager by going to Server manager>Tools>RD Licensing Manager.
2. Select the Server name, right-click it and then choose Properties.
3a. Select Connection method.
3b. Right-click the server name again, go to Advanced, then choose Deactivate Server.
3c. Run through the wizard.
4. So next up I launched the Services console (Start -> Run, type services.msc and click OK). Go down to Remote Desktop Licensing, right-click it and choose “Stop” to stop the service. Also change the Startup Type to Disable.
5. Navigate to C:\Windows\System32\lserver and look for the “TLSLic.edb” file. Delete this file. (I would make a backup just in case you wanted it back for some reason).