/**
* Removes a group.
*
* @param mixed $gid A group ID.
*
* @throws Horde_Group_Exception
*/
public function remove($gid)
{
try {
$this->_db->beginDbTransaction();
$this->_db->delete('DELETE FROM horde_groups_members WHERE group_uid = ?', array($gid));
$this->_db->delete('DELETE FROM horde_groups WHERE group_uid = ?', array($gid));
$this->_db->commitDbTransaction();
} catch (Horde_Db_Exception $e) {
throw new Horde_Group_Exception($e);
}
}