I have written some code to delete Virtual Directories, however all that it is doing is that it deleted the folder structures beneath the Virtuals and not the actual virtual entries in IIS, so that if I open IIS I can still see the listings under Default Web Site.
How does one delete virtual while also deleting the entries so that nothing is listed under Default Web Site?