Remove-SCApplicationDeployment

Deletes an application deployment from an application profile.

Description

The Remove-SCApplicationDeployment cmdlet deletes an application deployment from an application profile.

For more information about Remove-SCApplicationDeployment, type: "Get-Help Remove-SCApplicationDeployment -online".

Parameters

ApplicationDeployment

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies an application deployment object.

Confirm

Required? false
Accept Pipeline Input? false
Position? named
Prompts for confirmation before running the command.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Examples

1: Remove all of the application deployments from an application profile
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppDeployment = Get-SCApplicationDeployment -ApplicationProfile $AppProfile
PS C:\> $AppDeployment | Remove-SCApplicationDeployment
The first command gets the application profile object named SvcWebAppProfile01 and stores the object in the $AppProfile variable.

The second command gets all spplication deployment objects for the application profile stored in $AppProfile and stores the objects in the $AppDeployment array.

The last command uses the pipeline operator to pass each of the objects stored in the $AppDeployment array to the Remove-SCApplicationDeployment cmdlet, which deletes the application deployment objects.

See Also