Remove-SCSMWorkflow

Removes a workflow from Service Manager.

Syntax

Remove-SCSMWorkflow [-Workflow] <Workflow[]> [-Confirm] [-WhatIf] [<CommonParameters>]

Description

The Remove-SCSMWorkflow cmdlet removes a workflow from Service Manager.

Examples

Example 1: Remove a workflow

PS C:\>Get-SCSMWorkflow -Name "Incident02" | Remove-SCSMWorkflow

This command gets the workflow named Incident02 by using the Get-SCSMWorkflow cmdlet. The command passes that object to the current cmdlet by using the pipeline operator. That cmdlet deletes that workflow.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Workflow

Specifies an object that represents the workflow to remove.

Type:Workflow[]
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Inputs

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.Workflow

You can pipe a workflow to the *Workflow* parameter.

Outputs

None.

This cmdlet does not generate any output.