Deleting an FTP or Web site by using XML

Use the DeleteSite procedure of the Managed IIS Namespace to delete a File Transfer Protocol (FTP) site or Web site.

This procedure expects to be called with impersonate="1". The procedure impersonates the caller.

Example of a request that calls the DeleteSite procedure

<request>
  <procedure>
	 <execute namespace="Managed IIS" procedure="DeleteSite">
	 <executeData>
		 <IISPath>IIS://myMachine/W3SVC/4</IISPath>
		 <preferredDomainController>myPrimaryDC.contoso.com </preferredDomainController>
	 </executeData>
	</execute>
  </procedure>
</request>

Input for DeleteSite

The following input is valid for this request:

Typical response for DeleteSite

The response to this procedure does not contain significant data.

Important