Hello all,<BR><BR>TIA for any help with this.<BR><BR>I&#039m attempting to delete VirtualDirs with ADSI. I would really like to be able to delete ALL the virtual directories in any given IISVirtualServer. The code I&#039m currently using works, but produces an error. Here&#039s my code:<BR>&#060;%<BR>Set websvc = GetObject("IIS://localhost/W3svc/9")<BR>Set vRoot = websvc.GetObject("IIsWebVirtualDir", "Root")<BR><BR>Set Delete = vRoot.Delete("IIsWebVirtualDir", "test")<BR>%&#062;<BR>This works, but as I said produces this error:<BR><BR>Error Type:<BR>Microsoft VBScript runtime (0x800A01A8)<BR>Object required: &#039vRoot.Delete(...)&#039<BR>/iis/virdir.asp, line 6<BR><BR>It also is only good for deleting Virtual Directories that I know the name of... Is it possible to delete ALL the directories in this fasion? vRoot.DeleteAll or something?<BR>Regards,<BR>Brandon