Delete a token record by token.
@param  string  $token
@param  string  $type
@return void
197549
public function delete($token, $type)
    {
        $this->getTable()->where('token', $token)->where('type', $type)->delete();
    }
601113
public function clear( $type = null ) 
	{
		if ( is_null( $type ) )
		{
			$this->assets = array();
		}
		else
		{
			if ( isset( $this->assets[$type] ) )
			{
				$this->assets[$type] = array();
			}
		}
	}
1104522
public function destoryGarbage($token)
    {
        unset($this->callBacks[$token]);
        if ($this->clients!=null&&array_key_exists($token, $this->clients)) {
            $this->destoryClient($this->clients[$token]);
        }
        $this->client_count--;
        unset($this->clients[$token]);
    }
509303
public function deleteToken($token)
    {
        return $this->queryBuilder->from($this->getTokenTable())
            ->where('token', $token)
            ->delete();
    }
863285
public function deleteService( $type )
	{
		$this->_notifyListeners( 'deleteService.before', $type );

		if( isset( $this->_services[$type] ) ) {
			unset( $this->_services[$type] );
			$this->_modified = true;
		}

		$this->_notifyListeners( 'deleteService.after', $type );
	}
407688
public function delete($typeId, $status)
    {
        $this->deleteGroupAssignmentsForType($typeId, $status);
        $this->deleteFieldDefinitionsForType($typeId, $status);
        $this->deleteTypeNameData($typeId, $status);
        $this->deleteType($typeId, $status);
    }
519109
public function revokeToken($token)
    {
        $this->oauth->token = $token;
        $this->oauth->calltokenHandler();

        if ( ! $this->hasErrors()) {
            return $this->model->deleteToken(['key' => $token]);
        }

        return false;
    }
461798
public function endsWith($type)
	{
		if(empty($this->tokens))
		{
			return false;
		}
		
		return $this->tokens[count($this->tokens) - 1]->is($type);
	}
1126414
public static function isTokenType($token, $types)
    {
        if (!is_array($types)) {
            $types = array($types);
        }
        return is_array($token) ? in_array($token[0], $types) : in_array($token, $types);
    }
436225
protected function processToken(): void
    {
        $tokenTypes = [T_CONST, T_FUNCTION, T_VARIABLE];

        foreach ($tokenTypes as $tokenType) {
            $this->checkAndRegisterSortingProblemsOfTypes($tokenType);
        }
    }
987401
protected function resetCsrfToken($token=null)
    {
        $token || $token = $this->request->getParam($this->options['csrfTokenName']);
        FormToken::instance()->reset($token);
    }
1312900
public function deleteConsumerRequestToken ( $token )
	{
		 
		$sql = "BEGIN SP_DEL_CONSUMER_REQUEST_TOKEN(:P_TOKEN, :P_RESULT); END;";

			// parse sql
		$stmt = oci_parse($this->conn, $sql) or die ('Can not parse query');

		// Bind In and Out Variables
		oci_bind_by_name($stmt, ':P_TOKEN', $token, 255);
		oci_bind_by_name($stmt, ':P_RESULT', $result, 20);

		//Execute the statement
		oci_execute($stmt);
	}
1080601
public function deleteStreamKey($channel, $token = null)
    {
        $token = $this->getToken($token);

        $channelAPI = new Channels($token);

        return $channelAPI->deleteStreamKey($channel);
    }
1247465
public function destroy_token($tokenId) {
		try {
			$sql = "DELETE FROM ". $this->table ." WHERE auth_token_id=:tokenId";
			$deleteRes = $this->db->run_update($sql, array('tokenId'=>$tokenId));
		}
		catch(exception $e) {
			throw new exception(__METHOD__ .": failed to destroy token::: ". $e->getMessage());
		}
		
		return($deleteRes);
	}
1103811
def set_action_token(self, type_=None, action_token=None):
        
        if action_token is None:
            del self._action_tokens[type_]
        else:
            self._action_tokens[type_] = action_token
863534
public function deleteAction($id, Request $request, $type = null)
    {
        $this->type = $type;

        return parent::deleteAction($id, $request);
    }
1321672
public function set($token, $type)
    {
        if ($type != 'request_token' && $type != 'access_token') {
            $message = "Expected a type of either 'request_token' or 'access_token', got '$type'";
            throw new \Dropbox\Exception($message);
        } elseif ($type == 'request_token') {
            parent::set($token, $type);
        } else {
            $query = 'INSERT INTO ' . $this->table . ' (userID, token) VALUES (?, ?) ON DUPLICATE KEY UPDATE token = ?';
            $stmt = $this->pdo->prepare($query);
            $token = $this->encrypt($token);
            $stmt->execute(array($this->userID, $token, $token));
            $_SESSION[$this->namespace][$this->userID][$type] = $token;
        }
    }