Horde_Group_Base::remove PHP Method

remove() public method

Removes a group.
public remove ( mixed $gid )
$gid mixed A group ID.
    public function remove($gid)
    {
        // Remove group.
        $this->_remove($gid);
        // Update caches.
        if (($list = $this->_getListCache()) !== null) {
            unset($list[$gid]);
            $this->_setListCache($list);
        }
        try {
            $this->_cache->expire($this->_sig('name_' . $gid));
            $this->_cache->expire($this->_sig('data_' . $gid));
            $this->_cache->set($this->_sig('exists_' . $gid), 0);
        } catch (Horde_Cache_Exception $e) {
        }
    }