Remove-SCSMRelationshipInstance
Remove-SCSMRelationshipInstance
Removes an instance of a relationship.
Syntax
Parameter Set: Default
Remove-SCSMRelationshipInstance [-Instance] <EnterpriseManagementRelationshipObject`1[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-SCSMRelationshipInstance cmdlet removes an instance of a relationship.
Parameters
-Instance<EnterpriseManagementRelationshipObject`1[]>
Specifies the instance of relationship to be removed.
Aliases |
none |
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.
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.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Microsoft.EnterpriseManagement.Common.EnterpriseManagementRelationshipObject
You can pipe a relationship instance to the Instance parameter of the Remove-SCSMRelationshipInstance cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- None.
Examples
Example 1: Remove a relationship instance
This command removes a relationship instance.
PS C:\> Get-SCSMRelationshipInstance –Id "2e5f43fc-31fa-e4f1-57d8-ec3c37bb2ba0" | Remove-SCSMRelationshipInstance