Use the DeallocateWebSite procedure of the IIS Resource Manager namespace to deallocate initial resources for a Web site. This is the primary procedure callers use to deallocate resources when deleting a Web site.
This procedure runs as the MPF service account for calls to the Resource Manager database and impersonates the caller when creating directories and when creating and setting Web and FTP site permissions.
<request>
<execute namespace="IIS Resource Manager" procedure="DeallocateWebSite">
<executeData>
<IISPath>IIS://MyServer/W3SVC/5</IISPath>
</executeData>
<after source="executeData" destination="data" sourcePath="path" />
</execute>
</request>
The following input is valid for this request:
In the <IISPath> tag, you must specify the IIS path of the Web site, in the form IIS://machine/W3SVC/N. This is used as a unique identifier that distinguishes it from other Web sites.
<IISPath>IIS://computer name/W3SVC/N</IISPath>
The response to this procedure does not contain significant data.
Important