Remove-SCSMRelationshipInstance

Removes an instance of a relationship.

Syntax

Remove-SCSMRelationshipInstance [-Instance] <EnterpriseManagementRelationshipObject`1[]> [-Confirm] [-WhatIf]
 [<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

-Instance

Specifies the instance of relationship to be removed.

Type:EnterpriseManagementRelationshipObject`1[]
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-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

Inputs

Microsoft.EnterpriseManagement.Common.EnterpriseManagementRelationshipObject

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

Outputs

None.