# Delete group

> Deletes a CapaInstaller group.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/group-functions/delete-group/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Deletes a CapaInstaller group.

## Syntax

DeleteGroup(Byval GroupName as String, Byval GroupType as String, Byval UnitType as String) as Boolean

## Parameters

*GroupName (String)*

The name of the group

*GroupType (String)*

The type of the group. Valid values are "Dynamic\_ADSI", "Calendar", "Department", "Dynamic\_SQL", "Reinstall", "Security" and "Static"

*UnitType (String)*

The type of the elements in the group. This can be either "Computer" or "User"

## Return value

Boolean. Returns true if the group is deleted, otherwise false

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.DeleteGroup("Jylland","Static","Computer") 
```
