Remove an unused/hidden network connection so that an existing name can be reused

Solution 1:

Remove hidden adapter: Proposed solution:

Steps:

1) Remove adapter from: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkSetup2\Interfaces

2) use https://github.com/jschicht/RunAsTI to grand needed permissions

Solution 2:

There is a much easier way.

1- Open Device Manager and in View tab enable Show hidden devices.

2- Find the device linked to network interface you want to remove

3- Remove the device (it is not necessary to remove the drivers)