Delete a key

@param string $key

@return boolean
496759
public static function delete($path,$key) {

		if($key) {
			Artisan::call('config:cache');
			$delete_value = $key."=".env($key);
			file_put_contents($path, str_replace($delete_value, "", file_get_contents($path)));	
			Artisan::call('config:cache');

			return true;
		}

		return false;
	}
932462
public function remove($key) {
        if ($this->exists($key)) {
            $key = $this->_encrypt($key);
            $this->_memcached->delete($key);
            
            return true;
        }
        
        return false;
    }
1062088
public function delete($key)
    {
        if (!$this->enabled)
            return true;

        $this->Logger->debug("Delete key: {$key}");
        return eaccelerator_rm($this->key($key));
    }
703779
public function del($key) {

        $keys = func_get_args();
        $removed = 0;

        foreach ($keys as $key) {
            $sql = 'DELETE FROM '.$this->table.' WHERE `key`="'.$key.'"';
            $this->connection->exec($sql);
            $removed++;
        }

        return $removed;
    }
259700
public function del($key)
    {
        if ($this->isMappedKey($key)) {
            return false;
        } else {
            $success = true;
            if ($this->hasMaxSize()) {
                $fields = $this->getDriver()->hGetAll($key);
                if (!empty($fields)) {
                    foreach ($fields as $subKey => $value) {
                        if ($this->isSplit($value)) {
                            $success = $success && $this->deleteMappedKey($subKey, $value);
                        }
                    }
                }
                $success = $success && $this->deleteMappedKey($key);
            }

            return $success && $this->getDriver()->del($key);
        }
    }
229080
public function delete($key){
        $this->connection->where('keyCache = :key', array('key' => $key));
        return $this->connection->delete($this->table);
    }
1094579
public function remove( $key )
	{
		$uri	= $this->getUriForKey( $key );
		unset( $this->data[$key] );
		return @unlink( $uri );
	}
673233
public function delete(string $key): bool
    {
        $this->checkConnection(__METHOD__);
        $delete = $this->engine->delete($key);
        if ($delete && $this->index) {
            $this->index->events()
                ->trigger(Indexing::EVENT_ON_DELETE)
                ->params($key)
                ->fire();
        }

        return $delete;
    }
1041303
public function delete($key)
    {
        if (empty($this->memcache)) {
            return false;
        }

        $key = $this->processKey($key);

        return $this->memcache->delete($key);
    }
69226
public function delete($key)
    {
        $fileName = $this->getFileName($key);
        return (is_file($fileName) && unlink($fileName));
    }
860114
public function delete(string $key): bool
    {
        $file = $this->cacheFile($key);

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

        return false;
    }
364658
public function delete($key)
    {
        $key = $this->_key($key);

        return $this->_Memcached->delete($key);
    }
743275
public function delete(string $key): bool
    {
        $func = self::$type . '_delete';
        $func($key);
        return parent::delete($key);
    }
1000012
public function remove($key)
	{
		$this->connect();

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

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

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

		return true;
	}
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;
    }
252642
public function delete(string $key): bool
    {
        $sql =  'DELETE FROM #__' . $this->table
                . " WHERE `" . $this->keyField
                . "`='" . $this->db->addEscape($key) . "'";
        return $this->db->query($sql);
    }
19196
public function delete($key)
    {

        $deleted = false;

        $catalog = \array_keys($this->getKeys());
        foreach ($catalog as $k) {

            if ($k == $key) {
                unset($this->hash[$key]);
                if ($delete) {
                    $this->catalogKeyDelete($k);
                    $deleted = true;
                }
            }
        }

        return $deleted;
    }