Deleting all FTP or Web sites of an organization by using XML

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.

Example of a request that calls the DeleteOrgSite procedure

<request>
  <procedure>
	 <execute namespace="Managed IIS" procedure="DeleteOrgSites">
	 <executeData>
		 <owner>LDAP://OU=Hosting,DC=contoso,DC=com</owner>
	 </executeData>
	</execute>
  </procedure>
</request>

Input for DeleteOrgSite

The following input is valid for this request:

Typical response for DeleteOrgSite

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