Delete a key

@param string @key
@note path is only for compatibility, do not use
162856
public function delete($key, $path = null)
    {
        $filename = $this->getKeyCode($key);
        parent::delete($filename, $path);
    }
833584
protected function delete(string $key): void
    {
        $this->resolver()->where('id', '=', $this->getKeyId($key))->delete();
    }
125898
public function delete($key)
    {
        $this->master->getFilesystem()->delete($key);

        foreach ($this->slaves as $slave) {
            $slave->getFilesystem()->delete($key);
        }
    }
745143
public function delete($key)
    {
        if (strpos($key, '*') !== false) {
            $this->deleteGlob($key);
        } else {
            $this->client->del([$key]);
        }
    }
81184
function purge( $key ) {
            $this->_logger->entrance( 'key = ' . $key );

            $this->_options->unset_option( $key, true );
        }
313405
function del($key)
    {
        $index = array_search($key, $this->keys);

        if ($index !== false) {
            unset($this->keys[$index]);
            unset($this->values[$index]);
            $this->_reflow();
            return true;
        }
        return false;
    }
146285
public function remove($key) {
        $key = $this->formatKey($key);
        array_remove($this->headers, $key);
    }
1150121
public function forget($key)
    {
        $filename = $this->_hash(array($key));

        return (bool) $this->_delete($filename);
    }
813441
public function delete(string $key): bool
    {
        //create file name
        $file = $this->dir.'/'.\sha1($key).'.php';

        //chek if file exist and delete
        if (\file_exists($file)) {
            \unlink($file);

            return true;
        }

        return false;
    }
152907
public function remove($key): void
    {
        foreach ((array) $key as $key) {
            unset($_SESSION[$this->name][$key]);
        }
    }
402641
public function delete($key)
    {
        $keys = explode('.', $key);
        $key_string = '';
        foreach ($keys as $i => $_key) {
            $key_string = $key_string . ((is_numeric($_key) || $_key === '') ? "[{$_key}]" : "['{$_key}']");
        }
        $script = sprintf('unset($this->_params%s);', $key_string);
        eval($script);
    }
305069
public function deleteKey(Key $key)
    {
        $controls = $this->entityManager->getRepository('Concrete\Core\Entity\Express\Control\AttributeKeyControl')
            ->findBy(['attribute_key' => $key]);
        foreach ($controls as $control) {
            $this->entityManager->remove($control);
        }
        $this->entityManager->flush();

        parent::deleteKey($key);
    }
951110
public function delete($key)
    {
        $retunValue = false;
        $path = $this->getPath($key);
        $data = $this->getFromCache();
        $node = &$data;
        $cnt  = count($path) - 1;

        for ($ii=0; $ii<=count($path); $ii++) {
            if ($ii == $cnt) {
                unset($node[$path[$ii]]);
                $this->setToCache($data);
                $retunValue = true;
                break;
            }

            $node = &$node[$path[$ii]];
        }

        return $retunValue;
    }
44830
public function delete($key) {
        if (isset($_COOKIE[$key])) {
            unset($_COOKIE[$key]);
            setcookie($key, '', time() - 3600);
        }
    }
4514
public function deleteFromCache($key)
  {
    $file = $this->cachePath . $this->getEncodedKey($key);
    if (file_exists($file)) {
      unlink($file);
    }
  }
668157
public function delete($key)
    {
        $file = $this->path($key);

        if ($this->fileSystem->exists($file))
        {
            $this->fileSystem->delete($file);
        }

        return true;
    }
85989
def delete(key, parameters = {})
      if File.file?(path = pathify(key, parameters))
        FileUtils.rm(path)
      end
    end