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.
<request>
<procedure>
<execute namespace="Managed IIS" procedure="DeleteSite">
<executeData>
<IISPath>IIS://myMachine/W3SVC/4</IISPath>
<preferredDomainController>myPrimaryDC.contoso.com </preferredDomainController>
</executeData>
</execute>
</procedure>
</request>
The following input is valid for this request:
In the <IISPath> element, specify the IIS path of the FTP site that you want to delete:
<IISPath>IIS://path of the IIS site</IISPath>
By using the <preferredDomainController> element, you can specify the domain controller that you want to use for this request. Using a single preferred domain controller eliminates replication delays that arise between multiple controllers.
This information is optional.
<preferredDomainController>yourPrimaryDomainController.YourHostname.DomainNameExtension</preferredDomainController>
The response to this procedure does not contain significant data.
Important