Managed Web Hosting::DeleteCustomerWebSite
The DeleteCustomerWebSite method deletes a specified customer Web site and associated directories. Optionally removes the FTP virtual directory and archives content.
Arguments
Input argument | Required | Description |
---|---|---|
<org> |
Yes |
The Lightweight Directory Access Protocol (LDAP) path of the organization that owns the Web site. |
<webSiteName> or <webSitePath> |
Yes |
For this parameter, use the unique Web site name that was established when creating the site, or you can use the IIS metabase path. |
<preferredDomainController> |
Yes |
The name of the preferred domain controller. |
<archiveShare> |
No |
The UNC path to the share for archiving Web content. This path must be accessible via the MPF server and the account that is submitting this request must have permissions to create directories on that share (for example, \\WEB01\webArchive$). If provided, the procedure will copy the contents of the specified Web site and log files to this location prior to deletion. Otherwise, the content will simply be deleted. |
Remarks
Process Steps
The following steps occur when deleting a Web site with the DeleteCustomerWebSite method of the Managed Web Hosting Namespace:
Delete the Web site from the IIS metabase.
Archive the contents and log files of the Web site to <archiveShare> if specified.
Delete the Web site content, log files, and directory structure.
Delete the auto-generated users (anon and unc).
Delete the Web site pointer.
Security
The DeleteCustomerWebSite method has the following security requirements:
The caller is impersonated.
The caller is tested for OrgCreator permissions by checking for membership in any of the following groups:
Domain Admins
Hosting Admins
Reseller Admins
Sample Code
Example XML Request
The following is an example of an XML request for the DeleteCustomerWebSite method of the Managed Web Hosting Namespace:
<request>
<procedure>
<execute namespace="Managed Web Hosting"
procedure="DeleteCustomerWebSite" impersonate="1">
<executeData>
<preferredDomainController>AD01.fabrikam.com
</preferredDomainController>
<org>LDAP://OU=alpineskihouse,OU=consolidatedmessenger,
OU=Hosting,DC=fabrikam,DC=Com</org>
<webSiteName>www.alpineskihouse.com</webSiteName>
</executeData>
<after source="executeData" destination="data" mode="merge" />
</execute>
</procedure>
</request>
Example XML Response
No example XML response.
Applies To
Managed Web Hosting Namespace API for:
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
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 Web Hosting::CreateCustomerWebSite
Managed Web Hosting::ModifyCustomerWebSite
Managed Web Hosting::ControlCustomerWebSite