destroys all sessions belonging to the given $account

@param Account $account
@param string $reason
@return void
483720
public function destroySessionsForAccount(Account $account, string $reason = ''): void
    {
        $this->sessionManager->destroySessionsByTag($this->getSessionTagForAccount($account), $reason);
    }
380737
def delete(self, account_id, user_id):
        
        return self.connection.delete('account/access', account_id=account_id, user_id=user_id)
479276
public void removeAccount(Account accountToDelete) {
        // Thou shalt not delete root
        if (accountToDelete.getId().equals(rootAccount.getId()))
            return;

        Account parent = findParent(accountToDelete);
        if (parent != null) {
            removeAccount(parent, accountToDelete);
            setDirty(true);
        }
    }
461878
public void billingAccount_DELETE(String billingAccount, String details, OvhTerminationReasonEnum reason) throws IOException {
		String qPath = "/telephony/{billingAccount}";
		StringBuilder sb = path(qPath, billingAccount);
		query(sb, "details", details);
		query(sb, "reason", reason);
		exec(qPath, "DELETE", sb.toString(), null);
	}
743472
public function updateAccount(Account $account)
    {
        $response = $this->rest->post(
            static::ACCOUNT_PATH,
            $account->toUpdateParams()
        );

        $this->checkResponse($response);

        return $account->fromResponse($response);
    }
1301689
public static function disconnect() :void {

		// first authenticate
		self::enforce();

		// then close the session
		self::$_account->closeSession();

		// and redirect to the exit route or fallback to the login route
		Response::setRedirect(Config::get('router', 'exit_route') ?: Config::get('router', 'login_route'));

		// render the response
		Response::render();

	}
400613
public function setAccount(\Coral\CoreBundle\Entity\Account $account)
    {
        $this->account = $account;

        return $this;
    }
1099870
public function logDestroy(JoinPointInterface $joinPoint)
    {
        $session = $joinPoint->getProxy();
        if ($session->isStarted()) {
            $reason = $joinPoint->isMethodArgument('reason') ? $joinPoint->getMethodArgument('reason') : 'no reason given';
            $this->logger->debug(sprintf('%s: Destroyed session with id %s: %s', $this->getClassName($joinPoint), $joinPoint->getProxy()->getId(), $reason));
        }
    }
1374540
public function deactivate($reason = 'other', $explanation = '')
    {
        $userId = $this->id();

        if ($userId === null) {
            return false;
        }

        $request = [
            'user_id'     => $userId,
            'reason'      => $reason,
            'explanation' => $explanation,
        ];

        return $this->post(UrlBuilder::RESOURCE_DEACTIVATE_ACCOUNT, $request);
    }
413516
public function editAccountAction(Account $account)
    {
        $this->view->assignMultiple([
            'account' => $account,
            'user' => $this->userService->getUser($account->getAccountIdentifier(), $account->getAuthenticationProviderName())
        ]);
    }
1064736
public function delete($account, $deleteType = Constants::FRIEND_DELETE_TYPE_BOTH)
    {
        $request = new DeleteFriendRequest($this->identifier, $account, $deleteType);
        $response = new DeleteFriendResponse();
        return $this->client->sendRequest($request, $response);
    }
336190
public function sessionDestroyer()
    {
        if (isset($this->objectSession) && $this->objectSession != NULL && is_object($this->objectSession)) {
            $this->logger->info(__FUNCTION__, 'Destroy Session with CI Session Class');
            $this->objectSession->sess_destroy();
        } else {
            $this->logger->info(__FUNCTION__, 'Destroy Session with The Http Foundation Component');
            $this->session->invalidate();
        }
    }
821536
public OvhTaskSpecialAccount domain_responder_account_DELETE(String domain, String account) throws IOException {
		String qPath = "/email/domain/{domain}/responder/{account}";
		StringBuilder sb = path(qPath, domain, account);
		String resp = exec(qPath, "DELETE", sb.toString(), null);
		return convertTo(resp, OvhTaskSpecialAccount.class);
	}
142271
public void clearCache() {
        if (accountCache != null) {
            accountCache.invalidateAll();
        }
        for (Realm realm : allRealms) {
            if (realm instanceof CachingRealm) {
                CachingRealm cachingRealm = (CachingRealm) realm;
                cachingRealm.clearCache();
            }
        }
    }
106690
@Deactivate
    protected void deactivate(int reason) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "Deactivating " + this, "reason=" + reason);
        }
        // purge cached data from config
        this.cachedEncoding = null;
        this.cachedLocale = null;
        this.localeMap.clear();
        this.converterMap.clear();
        this.supportedEncodingsCache.clear();
        this.localesCache.clear();
    }
781621
public function destroy($reason = null)
    {
        if ($this->started !== true) {
            throw new Exception\SessionNotStartedException('The session has not been started yet.', 1218034663);
        }
        $this->data = [];
        $this->started = false;
    }
1158068
public function destroy($reason = null)
    {
        if ($this->started !== true) {
            throw new Exception\SessionNotStartedException('Tried to destroy a session which has not been started yet.', 1351162668);
        }

        if ($this->remote !== true) {
            $this->sessionCookie->expire();
        }

        $this->removeSessionMetaDataCacheEntry($this->sessionIdentifier);
        $this->storageCache->flushByTag($this->storageIdentifier);
        $this->started = false;
        $this->sessionIdentifier = null;
        $this->storageIdentifier = null;
        $this->tags = [];
        $this->request = null;
    }