Deletes user information from session:<br>
"usr", "dynvalue", "paymentid"<br>
also deletes cookie, unsets \OxidEsales\Eshop\Core\Config::oUser,
oxcmp_user::oUser, forces basket to recalculate.

@return null
19452
public function logout()
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);

        if ($oUser->logout()) {
            $this->setLoginStatus(USER_LOGOUT);

            // finalizing ..
            $this->_afterLogout();

            $this->resetPermissions();

            if ($this->getParent()->isEnabledPrivateSales()) {
                return 'account';
            }

            // redirecting if user logs out in SSL mode
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('redirect') && $myConfig->getConfigParam('sSSLShopURL')) {
                \OxidEsales\Eshop\Core\Registry::getUtils()->redirect($this->_getLogoutLink());
            }
        }
    }
842616
protected function _removeCookies()
    {
        $oUtilsServer = \OxidEsales\Eshop\Core\Registry::getUtilsServer();
        if (isset($_SERVER['HTTP_COOKIE'])) {
            $aCookies = explode(';', $_SERVER['HTTP_COOKIE']);
            foreach ($aCookies as $sCookie) {
                $sRawCookie = explode('=', $sCookie);
                $oUtilsServer->setOxCookie(trim($sRawCookie[0]), '', time() - 10000, '/');
            }
        }
        $oUtilsServer->setOxCookie('language', '', time() - 10000, '/');
        $oUtilsServer->setOxCookie('displayedCookiesNotification', '', time() - 10000, '/');

        $this->dispatchEvent(new AllCookiesRemovedEvent());
    }
1222087
public function delete()
    {
        $column  = Input::get('params.column');
        $session = app('request')->session();
        $key     = uri();
        $params  = $session->get($key);
        $data    = [];
        foreach ($params as $name => $values) {
            if (isset($values['column']) && $values['column'] == $column) {
                continue;
            }
            $data[$name] = $values;
        }
        $session->put($key, $data);
        $session->save();
        return response('', 200);
    }
1256455
public function delete()
    {
        if ($this->deleteStatement == null) {
            $this->deleteStatement = $this->connection->prepare("DELETE FROM User WHERE username = ?");
            $this->deleteStatement->bindParam(1, $this->username);
        }
        try{
            $this->deleteStatement->execute();
        } catch (PDOException $exception){
            return false;
        }
        if ($this->exists()) {
            return false;
        }
        $this->notifyObservers(User::EVENT_DELETE);
        return true;
    }
950824
private function destroyOldSessions()
    {
        $sql = $this->safesql->query("UPDATE `login`
                SET valid = 0
                WHERE user='%s'
                AND deleted = 0
                AND session_name='%s'
                AND logged_in=0
                OR TIMESTAMPDIFF(SECOND,timestamp,NOW()) > %i",
                array($this->getUser(),
                        SESSION_NAME,
                        SESSION_LENGTH));

        return $this->db->query($sql);
    }
475102
public function destroy()
    {
        // Deletes session from the database
        if (isset($this->sessionId)) {
            $stmt = $this->db->prepare("DELETE FROM {$this->tableName} WHERE session_id = ?");
            $stmt->execute([$this->sessionId]);
        }

        // Kill the cookie, every possible way
        // https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet#Proper_Deletion
        setcookie($this->cookieName, '', 1);
        setcookie($this->cookieName, false);
        unset($_COOKIE[$this->cookieName]);
    }
760680
public function delete(): bool
    {
        if(!isset($this->session[self::NATIVE_SESSION_USER_IDENTIFIER]))
            return false;
        
        unset($this->session[self::NATIVE_SESSION_USER_IDENTIFIER]);
        
        return true;
    }
686155
public function destroy()
    {
        // Erase the id on the client side
        if ($this->cookieBag->has($this->getName())) {
            $this->cookieBag->remove($this->getName());
        }

        // Erase on the server side
        return session_destroy();
    }
856251
public function removeDiscUser()
    {
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $aRemoveGroups = $this->_getActionIds('oxobject2discount.oxid');
        if ($oConfig->getRequestParameter('all')) {
            $sQ = $this->_addFilter("delete oxobject2discount.* " . $this->_getQuery());
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($sQ);
        } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
            $sQ = "delete from oxobject2discount where oxobject2discount.oxid in (" . implode(", ", \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteArray($aRemoveGroups)) . ") ";
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($sQ);
        }
    }
148500
public function clear()
    {
        if (null !== $this->aUser) {
            $this->aUser->removeUserRole($this);
        }
        if (null !== $this->aRole) {
            $this->aRole->removeUserRole($this);
        }
        $this->user_id = null;
        $this->role_id = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
429291
protected function DeleteExecute()
    {
        $oOrder = clone $this->oTable;
        $bReturn = parent::DeleteExecute();
        if (!empty($oOrder->sqlData['data_extranet_user_id'])) {
            $oTmpuser = TdbDataExtranetUser::GetNewInstance();
            $oTmpuser->Load($oOrder->sqlData['data_extranet_user_id']);
            if (!is_null($oTmpuser)) {
                TdbDataExtranetGroup::UpdateAutoAssignToUser($oTmpuser);
            }
        }

        return $bReturn;
    }
1097902
public function delete()
    {

        // Cleanup the user
        $this->login_history()->delete();
        $this->affiliations()->detach();
        $this->refresh_token()->forceDelete();

        $this->settings()->delete();

        return parent::delete();
    }
1339396
public function delete()
    {
        if (!$this->name) {
            throw new UnexpectedValueException(
                'Cannot delete a user with no name'
            );
        }

        $parts = array('DROP USER :user');
        $params = array(':user' => $this->name);

        if ($this->host) {
            $parts[] = '@:host';
            $params[':host'] = strtolower($this->host) == 'any' ? '%' : $this->host;
        }

        // Wrap in 'FLUSH PRIVILEGES' commands to update in-memory state
        $this->client->execute('FLUSH PRIVILEGES');
        $this->client->execute(implode(' ', $parts), $params);
        $this->client->execute('FLUSH PRIVILEGES');
    }
1226392
public function delete()
    {
        if ($this->id == 0 || $this->id == ADMIN_ID) return FALSE;
		$conn = self::getDbConnection();
		$str = 'DELETE [LOGIN='.$this->login.'][ID='.$this->id.']';
        $conn->executeQuery('DELETE FROM users_groups_membership WHERE user_id='.$this->id);
        $conn->executeQuery('DELETE FROM users_auth WHERE user_id='.$this->id);
        parent::delete();
			
	    Event::trigger(EVENT_CORE_USER_PROP,['message' => $str]);
    }
935409
public function logout()
	{
		// reset the current user
		if (\Config::get('ormauth.guest_login', true))
		{
			$this->user = \Model\Auth_User::query()
				->where('id', '=', 0)
				->get_one();
		}
		else
		{
			$this->user = false;
		}

		// delete the session data identifying this user
		\Session::delete('username');
		\Session::delete('login_hash');

		return true;
	}
823015
public function delete()
    {
        if ($this->getName()) {
            unset($_COOKIE[$this->getName()]);
            setcookie($this->getName(), null, time() - 3600, '/');
        }
        return;
    }
474981
protected function destroyCookie()
    {
        return setcookie(
            $this->config[ 'name' ],
            null,
            1,
            $this->config[ 'cookie' ]->path,
            '.' . ltrim($this->config[ 'cookie' ]->domain, '.'),
            $this->config[ 'cookie' ]->secure,
            true
        );
    }