Remove-SCSMRelationshipInstance

Removes an instance of a relationship.

Syntax

Remove-SCSMRelationshipInstance
      [-Instance] <EnterpriseManagementRelationshipObject`1[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCSMRelationshipInstance cmdlet removes an instance of a relationship.

Examples

Example 1: Remove a relationship instance

PS C:\>Get-SCSMRelationshipInstance -Id "2e5f43fc-31fa-e4f1-57d8-ec3c37bb2ba0" | Remove-SCSMRelationshipInstance

This command removes a relationship instance.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Instance

Specifies the instance of relationship to be removed.

Type:Microsoft.EnterpriseManagement.Common.EnterpriseManagementRelationshipObject`1[Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject][]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.EnterpriseManagement.Common.EnterpriseManagementRelationshipObject

You can pipe a relationship instance to the Instance parameter of the Remove-SCSMRelationshipInstance cmdlet.

Outputs

None.