Skip to main content
SnapCenter 4.9 cmdlets

Remove-SmResourceGroup

Contributors

Removes a resource group.

Syntax

Remove-SmResourceGroup [-ResourceGroupNames]  <String>  [-Force]  <>

Detailed Description

Enables you to delete a resource group from SnapCenter based on the resource group name provided.

Parameters

Name Description Required? Pipeline Input Default Value

ResourceGroupNames

true

true (ByPropertyName)

Force

false

true (ByPropertyName)

Examples

- Example 1: Removes a resource group by the resource group name -

 Remove-SmResourceGroup -ResourceGroupNames RG2

This example syntax removes a resource group from SnapCenter based on the resource group name provided.

Remove-SmResourceGroup
Are you sure you want to delete the Resource Group selected?Resource Group will be removed from all the member hosts of the Resource Group. The backups of the Resource Group will be deleted when the Resource Group is removed. Also all the association of policy with this Resource Group will be detached.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y

- Example 2: Removes the resource group by resource group name without a confirmation dialogue. -

 Remove-SmResourceGroup -ResourceGroupNames RG2 -Confirm:$false

This example syntax removes a resource group from SnapCenter based on the resource group name provided.