Remove-SCSMWorkflow

Removes a workflow from Service Manager.

Syntax

Remove-SCSMWorkflow
      [-Workflow] <Workflow[]>
      [-WhatIf]
      [-Confirm]
      [<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
Position:Named
Default value:False
Required: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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Workflow

Specifies an object that represents the workflow to remove.

Type:Workflow[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
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.