Hello there,
If you are not planning on automation am simple CMD might come handy.
Open CMD as admin
-Now, if you're trying to remove an Ethernet (wired) connection, input: netsh lan show profiles
-But, if you're trying to remove a Wi-Fi (wireless) connection, input: netsh wlan show profiles
-Find the network adapter you want to remove from the list and make a note of the interface name found at the top of each profile.
-Next, input the following command to remove a wired network adapter interface: netsh lan delete profile interface="InterfaceName"
Or, input the following command to remove a wireless network adapter interface: netsh wlan delete profile interface="InterfaceName"
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--