Remove all prefixes of this list

@param string $list
483964
public function removeHashPrefixesFromList($list)
  {
    $this->debugLog('removeHashPrefixesFromList() list '.$list);
    $listdir=$this->getListStorageDir($list);
    if(!$listdir || strlen($listdir)<10){
      $this->warningLog('removeHashPrefixesFromList() invalid list directory for list '.$list);
      return;
    }
    if(!is_dir($listdir)){
      $this->debugLog('removeHashPrefixesFromList() no list directory for list '.$list);
      return;
    }
    if(!is_file($listdir.$this->prefixes_filename)){
      $this->debugLog('removeHashPrefixesFromList() no prefix file for list '.$list);
      return;
    }
    unlink($listdir.$this->prefixes_filename);
  }
719304
public function removeDotDirectories(array $list)
    {
        $filter = function ($line) {
            return $line !== '' && ! preg_match('#.* \.(\.)?$|^total#', $line);
        };

        return array_filter($list, $filter);
    }
530636
public function listPrefixes()
    {
        $prefixes = Cache::configured();
        foreach ($prefixes as $prefix) {
            $this->out($prefix);
        }
    }
1049025
static function clearAll( $cacheList = false )
    {
        if ( !$cacheList )
            $cacheList = eZCache::fetchList();

        foreach ( $cacheList as $cacheItem )
        {
            eZCache::clearItem( $cacheItem );
        }
        return true;
    }
1283777
public function clear($prefix = null) {
        $prefix = !is_null($prefix) ? $prefix : $this->prefix;
        if ($prefix) {
            unset($_SESSION[$prefix]);
        }
        else {
            $_SESSION = [];
        }
    }
81859
public function setIgnorePatterns( $list )
	{
		$this->ignorePatterns	= array();
		foreach( array_value( $list ) as $pattern)
			$this->addIgnorePattern( $pattern );	
	}
720949
protected function cleanSrcList($list)
    {
        $dirs = array_get($list, 'directories');
        $files = array_get($list, 'files');
        $path = array_get($list, 'path');
        $node = array_get($list, 'node');

        foreach ($dirs as $key => $dir) {
            $dirs[$key] = [
                'name' => $dir,
                'path' => $path,
                'type' => 'dir',
                'node' => $node
            ];
        }

        foreach ($files as $key => $file) {
            $name = array_get($file, 'path');
            $files[$key]['name'] = $name;
            $files[$key]['type'] = 'file';
            $files[$key]['node'] = $node;
        }

        return array_merge($dirs, $files);
    }
82324
public function updateList(&$list){
		if($this->modelIsMultiSitesAware()){
			$site = $this->getActiveSite();
			if ($site) {
				$list = $list->filter('SiteID', $site->ID);
			}
		}
	}
1371251
public static <T> T removeLast( List<T> list )
    {
        return remove( list, list.size() - 1 );
    }
1285468
public function deleteMultiple( $keys )
	{
		foreach( $keys as $key ) {
			$this->object->remove( $this->prefix . $key );
		}
	}
756862
public function removeDotDirectories(array $list)
	{
		$filter = function ($line)
		{
			if (!empty($line) && !preg_match('#.* \.(\.)?$|^total#', $line))
			{
				return true;
			}

			return false;
		};

		return array_filter($list, $filter);
	}
709464
def _do_remove_prefix(name):
    """"""
    res = name
    if isinstance(res, str):
        if (res.find('Table: ') == 0):
            res = res.replace('Table: ', '', 1)
    return res
1024599
private function adjustUriSegments($list, $item)
    {
        if ($item === '..') {
            array_pop($list);
            return $list;
        }
        array_push($list, $item);

        return $list;
    }
672885
void clear(int list) {
		int last = getLast(list);
		while (last != nullNode()) {
			int n = last;
			last = getPrev(n);
			freeNode_(n);
		}
		m_lists.setField(list, 0, -1);
		m_lists.setField(list, 1, -1);
		setListSize_(list, 0);
	}
1284623
public void truncateAllWithPrefix(@Nonnull String prefix) {
    for (String queueName : queues.keySet()) {
      if (queueName.startsWith(prefix)) {
        truncate(queueName);
      }
    }
  }
1333788
protected function clear_list($list)
	{
		is_array($list) or $list = array($list);

		foreach ($list as $_list)
		{
			$this->{$_list} = array();
		}
	}
1087559
protected function normalizeListing(array $listing, $prefix = '')
    {
        $base = $prefix;
        $result = [];
        $listing = $this->removeDotDirectories($listing);

        while ($item = array_shift($listing)) {
            if (preg_match('#^.*:$#', $item)) {
                $base = preg_replace('~^\./*|:$~', '', $item);
                continue;
            }

            $result[] = $this->normalizeObject($item, $base);
        }

        return $this->sortListing($result);
    }