Remove-ASGroup
                                            
Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
You can use the Remove-ASGroup cmdlet to delete a group using its GroupID.
Note:The Remove-ASGroup cmdlet removes the linked packages and applications as well as the targeted packages and applications for each respective operation.
Example
The following is the syntax used to delete a group:
Remove-ASGroup-ID nn
For example:
Remove-ASGroup-ID 32
Parameters
The Remove-ASGroup cmdlet has the following parameters:
| 
                                                         Parameter  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         ID  | 
                                                    
                                                         Specifies the ID for the group which is being removed. (Required)  | 
                                                
Returns
One of the following values is returned:
| • | 0—Success. The delete operation completed successfully. | 
| • | 1—Insufficient access rights. Permission to Delete is not available. | 
| • | 2—Object is locked. The group contains locked virtual packages. You will need to unlock the virtual packages in order to delete the group. | 
| • | 3—General failure. Operation did not complete successfully. | 
| • | 4—Protected group. The deletion of protected groups is prohibited. | 
| • | 5—Item not found. The requested item could not be deleted because it could not be found. |