Removes a key from the storage

@param string $key
@return boolean
323866
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->session[$key]);
            return true;
        } else {
            return false;
        }
    }
22821
public function remove($key)
    {
        if (array_key_exists($key, $this->settings)) {
            unset($this->settings[$key]);
            return true;
        }
        return false;
    }
786539
public function remove(string $key): bool
    {
        if (isset($this->_configValues[$key]) === false) {
            return false;
        }

        unset($this->_configValues[$key]);
        return true;
    }
565663
public function remove($key)
    {
        $key = is_array($key) ? $key : [$key];
        $config = $this->data;
        $data = &$config;
        while ($key) {
            $k = array_shift($key);
            if (!$key) {
                unset($config[$k]);
                break;
            }
            $config[$k] = isset($config[$k]) ? $config[$k] : [];
            $config = &$config[$k];
        }
        $this->data = $data;
        return $this->save();
    }
1000012
public function remove($key)
	{
		$this->connect();

		$this->driver->delete($key);

		$rc = $this->driver->getResultCode();

		if ($rc !== \Memcached::RES_SUCCESS)
		{
			return false;
		}

		return true;
	}
340158
public function delete($key)
    {
        if (true === array_key_exists($key, $this->cache)) {
            unset($this->cache[$key]);

            return true;
        }

        return false;
    }
1277408
public function delete($key)
    {
        $res = $this->deleteFile($key);
        if ($res === false) {
            return false;
        }

        return $this->deleteStore($key);
    }
646272
public function remove(string $key)
    {
        // check if the $key is an alias
        if (isset($this->aliases[$key])) {
            $alias = $key;
            $key = $this->aliases[$key];
            unset($this->aliases[$alias]);
        }

        // if the key exists as a factory
        if ($this->hasFactory($key)) {
            unset($this->definitions['factory'][$key]);
            $this->removeAliasFor($key);
            return ! $this->hasFactory($key);
        }

        // if the key exists as an object
        if ($this->hasObject($key)) {
            unset($this->definitions['instance'][$key], $this->store[$key]);
            $this->removeAliasFor($key);
            return ! ($this->hasObject($key) || $this->hasStored($key));
        }

        // the key did not exist
        return false;
    }
395385
public function removeValue(string $key): bool
    {
        if (isset($this->values[$key])) {
            unset($this->values[$key]);
            return true;
        }
        return false;
    }
1244158
public function delete($key)
    {
        $filename = $this->cacheDir . DIRECTORY_SEPARATOR . $this->processKey($key);

        return unlink($filename);
    }
505707
public function remove($key): bool {
        if (isset($this->array[$key])) {
            unset($this->array[$key]);
            return true;
        }
        return false;
    }
1312252
public static function remove($key)
		{
			self::_cleanPrevious();

			if(self::is($key))
			{
				unset($_SESSION[self::$_sessionKey.$key]);
				return true;
			}
			else
			{
				return false;
			}
		}
185225
public function delete($key)
    {
        $filePath = $this->getFilePathFromKey($key);

        if (!file_exists($filePath)) {
            return false;
        }

        return unlink($filePath);
    }
328665
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->cache[$key]);
            return true;
        } else {
            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;
	}
305095
public function forget($key)
	{
		$this->checkLoaded();
		$this->modified = true;

		if ( $this->has($key) ) {
			SettingsUtilities::forget($this->storage, $key);
		}

		return true;
	}
732255
public function forget($key)
	{
		if ($this->has($key))
		{
			unset($this->data[$this->id($key)]);
		}

		return true;
	}