# cleanGroups

### Inaport Gold and above only

### cleanGroups()

Scans the groups table and cleans deleted contacts.

## Returns

No value returned.

## Description

This function will search and delete any entries in the groups table for contacts that have been previously deleted and removes them from the groups table. cleanGroups also ensures that the number of members tallies with the group header. This operation is run only at the start of an import.

NOTE: this operation could take a while, and it is recommended that you take a backup of your GoldMine database, and perform a repack and rebuild for DBase systems to ensure that the records are deleted.