Delete a role
@param  string $key Lookup key
@return boolean
766842
public function delete($key)
    {
        $role   =   $this->findByKey($key);
        if (! isset($role)) {
            return true;
        }

        return $role->delete();
    }
167612
public function delete($key)
    {
        if (!$this->enabled)
            return true;

        $this->Logger->debug("Delete key: {$key}");

        $apcMethod = $this->apcFuncPrefix.'_delete';
        return $apcMethod($this->key($key));
    }
85662
public function delete($key)
    {
        if (empty($this->predis)) return false;

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

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

        return $this->deleteStore($key);
    }
37902
public function delete($key)
	{
		if(!$this->exists($key)) {
			return false;
		}

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

		return true;
	}
69226
public function delete($key)
    {
        $fileName = $this->getFileName($key);
        return (is_file($fileName) && unlink($fileName));
    }
1295908
public function delete($key)
    {
        $query = sprintf('DELETE FROM `%s` WHERE `key` = :key', $this->table);
        $stmt = $this->pdo->prepare($query);

        return $stmt->execute(array(
            ':'.ConstProviderInterface::CACHE_PARAM_KEY => $key,
        ));
    }
42175
public function delete($key = '')
    {
        $node = $this->mainNode->getByKey($key);
        if (empty($node)) return $this->mainNode;
        $this->mainNode->children->removeNode($node);
        unset($node);

        return $this->mainNode;
    }
309606
public final function deleteItem($key)
   {
       try {
           if (!$this->hasItem($key)
            || !$this->poolDeleteItem($this->pool[$key])) {
               return false;
           }
           unset($this->pool[$key]);
       } catch (InvalidArgumentException $e) {
           throw $e;
       }
       return true;
   }
525945
public function delete($key) {
        if (!isset($this->store[$key])) {
            return false;
        }
        unset($this->store[$key]);
        if ($this->maxsize !== false) {
            $this->storecount--;
        }
        return true;
    }
740863
public function forget($key)
	{
		$key = $this->id($key);
		return $this->apcu ? apcu_delete($key) : apc_delete($key);
	}
1271855
function delete($key) {
        parent::delete($key);
        if($this !== $this->client->users) {
            $this->client->users->delete($key);
        }
        
        return $this;
    }
800051
public function delete($key)
    {
        try {
            return (bool) $this->db->from($this->table)
                    ->where($this->columns['key'])->eq($this->prefix . $key)
                    ->delete();
        } catch (PDOException $e) {
            return false;
        }
    }
873073
public function delete($key)
    {
        try {
            $this->get($key);
        } catch (KeyNotFoundException $e) {
            return false;
        }

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

        return true;
    }
437740
public function delete($key)
    {
        $key = $this->_key($key);
        unset($this->data[$key]);

        return true;
    }
1075771
protected function deleteValue($key)
    {
        $this->db->getCollection($this->cacheCollection)->remove(['id' => $key]);
        return true;
    }
118404
public function deleteByKey(string $key): bool
    {
        if (!$this->users_id) {
            throw new Exception('No users is set to save config');
        }

        if ($config = $this->findFirst(['conditions' => 'users_id = ?0 and name = ?1', 'bind' => [$this->users_id, $key]])) {
            return $config->delete();
        }

        return false;
    }