public function delete($name)
    {
        try {
            $result = $this->getStorage()->delete($this->cookiePrefix . $name);
            $this->cookieBag->removeKey($this->cookiePrefix . $name);
        } catch (\Exception $e) {
            throw new CookieException($e->getMessage());
        }

        return $result;
    }