Managed IIS::DeleteSite Method
The DeleteSite method deletes a Web or FTP site. The method replaces the deprecated DeleteFTPSite and DeleteWebSite methods.
Arguments
The DeleteSite method accepts the following input parameters.
Input Argument | Required | Description |
---|---|---|
IISPath |
No |
The IIS path to the Web or FTP site. |
PreferredDomainController |
No |
The domain controller to use for this operation. |
SendCredentials |
No |
True/False: embed basic authentication credentials in the MPF request. |
ErrorReturn |
No |
Out parameter containing the error (if any) thrown by MPF during the processing of the request. |
The DeleteSite method has the following return values.
Output Argument | Description |
---|---|
True |
If the method succeeds. |
False |
If the method fails to delete the Web or FTP site. |
Remarks
No remarks.
Sample Code
No sample code.
Applies To
for:
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
Windows-based Hosting version 4.5
Windows-based Hosting version 4.0
Windows-based Hosting version 3.5
Windows-based Hosting for Applications version 1.0
See also
Tasks
Managed IIS::CreateWebSite Method
Managed IIS::ModifyWebSite Method