# cleargrp

### Inaport Gold and above only

### cleargrp(groupName, userId)

Always deletes all members of the specified group at the start of an import.

## Arguments

Argument | Data Type | Description
groupName | string | Name of GoldMine group be cleared
userId | string | The user ID of the owner of the group

## Returns

No value returned.

## Description

Always clears all members of the GoldMine group specified in the groupName parameter that belongs to the user specified in the userId parameter, before carrying out the import. Note that the cleargrp operation is only carried out once, at the start of the import. Also note that if the userId parameter is blank then the user ID that has been set up for the import will be used.

## Examples

Example | Returns | Description
cleargrp("NewInvoices") |  | Clears all members of the current GoldMine group "NewInvoices" before carrying out the import
cleargrp("NewInvoices", "BLOGGS") |  | Clears all members of the current GoldMine group "NewInvoices" that is owned by the user "BLOGGS" before carrying out the import.

## See Also

addtogrp(), attachap(), makegrp(), removefromgrp(), removegrp()