Remove-WebAppPool

Removes an application pool from IIS.

Syntax

Remove-WebAppPool
      [-Name] <String>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Removes an application pool from IIS.

Examples

-------------- EXAMPLE 1: Removing an Application Pool --------------

IIS:\>New-WebAppPool MyNewAppPool "Sleep for 5 seconds before AppPool gets removed"; Sleep 5 Remove-WebAppPool MyNewAppPool

This example demonstrates how to create a new application pool, and then removes it after waiting 5 seconds.

Required Parameters

-Name

The name of the application pool to remove.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False