Share via


Remove-SCRelationshipInstance

Removes an instance of a relationship.

Syntax

Default (Default)

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

Description

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

Examples

Example 1: Remove a relationship instance

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

This command removes a relationship instance.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Instance

Specifies the instance of relationship to be removed.

Parameter properties

Type:

Microsoft.EnterpriseManagement.Common.EnterpriseManagementRelationshipObject`1[Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject][]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.EnterpriseManagement.Common.EnterpriseManagementRelationshipObject

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

Outputs

None.