Remove all items from the cache.

@param   string  $group
@return  void
506340
public function clean($group = null)
	{
		$hash = $this->options['hash'];

		$allinfo = $this->apcu ? apcu_cache_info() : apc_cache_info('user');

		foreach ($allinfo['cache_list'] as $key)
		{
			if (strpos($key['info'], $hash . '-cache-' . $group . '-') === 0) // xor $mode != 'group')
			{
				$this->apcu ? apcu_delete($key['info']) : apc_delete($key['info']);
			}
		}
		return true;
	}
671239
public function clearGroup($group)
    {
        $success = false;
        wincache_ucache_inc($this->_config['prefix'] . $group, 1, $success);

        return $success;
    }
267782
public function remove($key): void
	{
		$this->cachedStorage->remove($key);
		$this->memoryStorage->remove($key);
	}
546069
public function removeUsersFromGroup(Group $group, array $users)
    {
        foreach ($users as $user) {
            $group->removeUser($user);
            $this->eventDispatcher->dispatch('log', 'Log\LogGroupRemoveUser', array($group, $user));
        }

        $this->om->persist($group);
        $this->om->flush();
    }
769584
public function clearGroup($group)
    {
        $success = false;
        apcu_inc($this->_config['prefix'] . $group, 1, $success);

        return $success;
    }
295899
public function deleteGroup($groupId)
    {
        $objectStates = $this->loadObjectStates($groupId);
        foreach ($objectStates as $objectState) {
            $this->objectStateGateway->deleteObjectStateLinks($objectState->id);
            $this->objectStateGateway->deleteObjectState($objectState->id);
        }

        $this->objectStateGateway->deleteObjectStateGroup($groupId);
    }
1045114
public function removePaths(array $paths, $clearCache = true, $group = '__DEFAULT__')
	{
		array_map([$this, 'removePath'], $paths, [[$clearCache, $group]]);
	}
351478
public function clean($group = null)
	{
		$success = true;

		if (is_dir($this->directory . DS . $group))
		{
			$this->engine->setOption('cacheDir', $this->directory . DS . $group . DS);
			$success = $this->engine->clean($group, 'group');
		}

		if ($success == true)
		{
			return $success;
		}

		return false;
	}
459578
public function deleteAction(Group $group)
    {
        $this->getEntityManager()->remove($group);
        $this->getEntityManager()->flush();

        return new Response("", 204);
    }
180015
public static function delete($key, $group = NULL)
	{
		$result = FALSE;
		try {
			!self::classExists() or $result = self::instance($group)->delete($key);
		} catch (Cache_Exception $e) {
			self::exception($e);
		}

		return $result;
	}
16587
public function destroy(Group $group)
    {
        $ml = $this->guiHandler->getManialink($group, $this);
        if ($ml) {
            $this->guiHandler->addToHide($ml, $this);
        }
    }
972667
public function removeGroup(GroupInterface $group)
	{
		if ($this->inGroup($group))
		{
			$this->groups()->detach($group);
			$this->invalidateUserGroupsCache();
			$this->invalidateMergedPermissionsCache();
		}

		return true;
	}
1318943
public function onExpansionGroupDestroy(Group $group, $lastLogin)
    {
        if (isset($this->groups[$group->getName()])) {
            unset($this->groups[$group->getName()]);
        }
    }
98565
public function removeGroup(GroupInterface $group)
    {
        if ($this->hasGroup($group)) {
            $this->groups->removeElement($group);
        }

        return $this;
    }
135519
public function insertGroup(Group $group)
    {
        $group->setGuid($this->container->get('claroline.utilities.misc')->generateGuid());
        $this->om->persist($group);
        $this->eventDispatcher->dispatch('log', 'Log\LogGroupCreate', array($group));
        $this->om->flush();
    }
885710
public function removeGroup(GroupInterface $group): void
    {
        if (!$group instanceof Production) {
            throw new Exception('Group type not supported.');
        }
        $this->groups->removeElement($group);
    }
81563
public function clear($key)
    {
        $this->cache->forget($key);

        $this->cache->forget($key .':lockout');
    }