Use the DeleteOrgSite procedure of the Managed IIS namespace to delete all of the FileTransferProtocol (FTP) or Web sites of an organization.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
<request>
<procedure>
<execute namespace="Managed IIS" procedure="DeleteOrgSites">
<executeData>
<owner>LDAP://OU=Hosting,DC=contoso,DC=com</owner>
</executeData>
</execute>
</procedure>
</request>
The following input is valid for this request:
In the <owner> element, specify the Lightweight Directory Access Protocol (LDAP) path of the organization to which the Web and FTP sites belong.
<owner>LDAP path of the owner organization.</owner>
This procedure returns a list of deleted Web or FTP sites.
<response>
<data>
<owner>LDAP://OU=Hosting,DC=contoso,DC=com</owner>
<IISPaths>
<IISPath>IIS://contoso0/W3SVC/13846063</IISPath>
<IISPath>IIS://contoso0/W3SVC/13471018</IISPath>
</IISPaths>
</data>
</response>
Important