< Back

Remove-CBResourceService

Mon Jan 13, 2020 3:30 am

NAME Remove-CBResourceService



SYNOPSIS

Removes a service resource from CloudBolt.





SYNTAX

Remove-CBResourceService [-Session] <Object> [-ID] <Int32> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The `Remove-CBResourceService` function removes a service resource from CloudBolt. Pass the session to the

targeted CloudBolt instance to the `Session` parameter (use `New-CBSession` to create a session). Pass the ID of

the service to the `ID` parameter. You can also pipe the ID to this function, or pipe an object with an ID

property.





PARAMETERS

-Session <Object>

The session to the CloudBolt instance to use.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ID <Int32>

The ID of the group to remove.



Required? true

Position? 2

Default value 0

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-CBResourceService -Session $session -ID 54



Demonstrates how to remove a service resource using its ID.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-CBResourceService -Session $session -ID 65 | Remove-CBResourceService -Session $session



Demonstrates how you can pipe service resource objects to `Remove-CBResourceService`.











RELATED LINKS