Managed Web Hosting::DeleteAppPool

The DeleteAppPool method deletes an application pool.

Arguments

Input argument Required Description

<webServerName>

Yes

A string representing the name of the server. This can be a NetBIOS name, an FQDN, or an IP address.

<appPoolId>

Yes

The name of the application pool to delete.

Remarks

Process Steps

The following step occurs when deleting an application pool with the DeleteAppPool method of the Managed Web Hosting Namespace:

  1. Delete an application pool.

Security

The DeleteAppPool method has the following security requirements:

  • The caller is impersonated.

Sample Code

Example XML Request

The following is an example of an XML request for the DeleteAppPool method of the Managed Web Hosting Namespace:

<request> 
        <procedure> 
                <execute namespace="Managed Web Hosting" procedure="DeleteAppPool"  
                impersonate="1"> 
                        <executeData> 
                        <webServerName>WEB01</webServerName> 
                        <appPoolId>SharedAppPool</appPoolId> 
                        </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::CreateAppPool