I use Remove-WebBinding -Port $Port -Protocol https
to remove a web binding. This removes the binding from the associated site but the binding continues to exist an
What about using Remove-Item
:
Example :
PS> dir IIS:\SslBindings
IP Address Port Store Sites
---------- ---- ----- -----
0.0.0.0 8172 MY
0.0.0.0 9000 My
PS> Remove-Item -path "IIS:\SslBindings\0.0.0.0!9000"
PS> dir IIS:\SslBindings
IP Address Port Store Sites
---------- ---- ----- -----
0.0.0.0 8172 MY