Removes the index entry for the given cache key.

@param string $key

@return bool True if delete was successful, otherwise false.
15503
public function deleteEntryByKey($key)
    {
        if (isset($this->array['Key2Tags'][$key])) {
            unset($this->array['Key2Tags'][$key]);

            foreach ($this->array['Tags2Key'] as $tag => $tagKeys) {
                if (isset($tagKeys[$key])) {
                    unset($this->array['Tags2Key'][$tag][$key]);
                }
            }
        }

        return false;
    }
283670
public function clear(string $key = ''): bool {
		if ($key === '') {
			$this->recursiveDeleteDirectory($this->storageCachePath);
			return true;
		}
		$cacheDir = $this->storageCachePath . $key;
		$dirName  = dirname($cacheDir);
		$find     = str_replace($dirName . '/', '', $cacheDir);
		if (is_dir($dirName) && $dirArray = scandir($dirName)) {
			foreach ($dirArray as $k => $v) {
				if ($v !== '.' && $v !== '..') {
					if (is_dir($dirName . '/' . $v) && (strpos($v, $find) === 0)) {
						$this->recursiveDeleteDirectory($dirName . '/' . $v);
						rmdir($dirName . '/' . $v);
					}
					elseif (strpos($v, $find) === 0) {
						unlink($dirName . '/' . $v);
					}
				}
			}
		}
		return true;
	}
741873
public function remove($key)
    {
        if (!$this->isEnabled() || !$this->has($key)) {
            return false;
        }

        eaccelerator_rm($this->prefix() . $key);

        return true;
    }
255520
public function removeFile($key)
    {
        if (isset($this->files[$key])) {
            unset($this->files[$key]);
            return true;
        } else {
            return false;
        }
    }
538983
public function forget($key)
	{
		$file = $this->path($key);

		if (file_exists($file))
		{
			return unlink($file);
		}

		return true;
	}
956751
public function remove($key)
    {
        //~ Check if enabled
        if (!$this->isEnabled()) {
            return false;
        }

        $file = $this->directory . substr(md5($key), 0, 10) . '.dat';
        if (!file_exists($file)) {
            return false;
        }

        unlink($file);
        unset($this->cache[$key]);
        $this->save();

        return true;
    }
196615
public function remove(string $key)
  {
    $file = $this->file;

    if (file_exists($file)) {
      $data = unserialize($this->decrypt(file_get_contents($file)));

      if (is_array($data) && isset($data[$key])) {
        unset($data[$key]);
        $data = $this->encrypt(serialize($data));
        return file_put_contents($file, $data);
      }
    }

    return false;
  }
1176581
public function remove($key)
	{
		$this->validateKey($key);
		if ($this->has($key)) {
			unset($this->params[$key]);
			return true;
		} else {
			return false;
		}
	}
873073
public function delete($key)
    {
        try {
            $this->get($key);
        } catch (KeyNotFoundException $e) {
            return false;
        }

        unset($this->store[$key]);

        return true;
    }
1060716
public function forget(string $key): bool
    {
        $key = $this->hashKey($key);
        if (\array_key_exists($key, $this->cache)) {
            unset($this->cache[$key]);
            return true;
        }
        return false;
    }
702546
public function remove( $key )
    {
        if ( $key instanceof Interfaces\SeedLike )
        {
            $key = $key->getId();
        }

        if ( !Utility\Option::contains( $this->_bag, $key ) )
        {
            return false;
        }

        Utility\Option::remove( $this->_bag, $key );

        return true;
    }
55778
public function remove($key) {
        $key = $this->conf['keyPrefix'] . $key;
        X::logger()->trace("MCache remove $key");
        return $this->cache->delete($key);
    }
437740
public function delete($key)
    {
        $key = $this->_key($key);
        unset($this->data[$key]);

        return true;
    }
160727
public function forget($key)
	{
		@list($group, $name) = $this->id($key);

		$this->engine->setOption('cacheDir', $this->directory . DS . $group . DS);

		$success = $this->engine->remove($name, $group);

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

		return false;
	}
258319
public function remove($key)
    {
        $position = $this->getPosition($key);
        if (false !== $position) {
            $this->file->remove($position);
            $this->rebuildIndex();

            return true;
        }

        return false;
    }
855039
public function remove( $key )
	{
		if( !isset( $GLOBALS[$this->poolKey][$key] ) )
			return false;
		unset( $GLOBALS[$this->poolKey][$key] );
		return true;	
	}
252642
public function delete(string $key): bool
    {
        $sql =  'DELETE FROM #__' . $this->table
                . " WHERE `" . $this->keyField
                . "`='" . $this->db->addEscape($key) . "'";
        return $this->db->query($sql);
    }