Given a session's ID, remove it's row from `tbl_sessions`

@param string $id
The identifier for the Session to destroy
@throws DatabaseException
@return boolean
true if the Session was deleted successfully, false otherwise
424514
public static function destroy($id)
    {
        return Symphony::Database()->query(
            sprintf(
                "DELETE
                FROM `tbl_sessions`
                WHERE `session` = '%s'",
                Symphony::Database()->cleanValue($id)
            )
        );
    }
449607
public function deleteById(string $id = '') : bool
    {
        $node = $this->mainNode->getById($id);

        if (empty($node)) {
            true;
        }

        return ($node->delete() ? true : false);
    }
992311
public function destroy($id)
	{
		$tableName = $this->db->parseField($this->tableName);
		$sessionIDField = $this->db->parseField('session_id');
		return $this->db->execute(<<<SQL
delete from {$tableName} where {$sessionIDField} = %s
SQL
,array($id));
	}
350671
public static function destroy($id)
    {
        $instance = new static;

        // We will actually get the models from the API and call delete on it.
        // This way its events get fired properly with a correct set of attributes
        // in case the developers wants to check these.
        $key   = $instance->getKeyName();
        $model = $instance->where($key, $id)->first();

        if ($model->delete()) {
            return true;
        }

        return false;
    }
1211110
public function destroy($session_id)
	{
		// Get the database connection object and verify its connected.
		if (!$this->connection->connected())
		{
			return false;
		}

		try
		{
			$query = $this->connection->getQuery()
				->delete('#__session')
				->whereEquals('session_id', $session_id);

			// Remove a session from the database.
			$this->connection->setQuery($query->toString());

			return (boolean) $this->connection->execute();
		}
		catch (Exception $e)
		{
			return false;
		}
	}
568798
public function delete($id)
    {
        $this->_write(sprintf('delete %d', $id));
        $status = $this->_read();

        switch ($status) {
            case 'DELETED':
                return true;
            case 'NOT_FOUND':
                return false;
            default:
                throw new ServerException('Delete error: '.$status);
        }
    }
346129
function destroy($id) {
		Cache::instance()->clear($id.'.@');
		setcookie(session_name(),'',strtotime('-1 year'));
		unset($_COOKIE[session_name()]);
		header_remove('Set-Cookie');
		return TRUE;
	}
508261
final public function destroy($id = "")
    {

        $id = !empty($id) ? $id : $this->getId();
        $now = time();

        if (empty($id)) {
            return false;
        }

        setcookie(session_name(), '', $now - 42000, '/');

        if (session_id()) {
            @session_unset();
            @session_destroy();
        }

        //Delete from db;
        //Do a garbage collection
        $this->gc($id);
    }
766600
public function remove($id) {
		if (! $this->connectionCheckStatus) {
			$this->addServer();
		}
		
		return $this->getClient()->delete($this->prepareId($id));
	}
68278
public function destroy($id)
    {
        $query = "DELETE FROM " . $this->tableName . " WHERE session_id = :id";
        $stmt = $this->db->prepare($query);
        setcookie(session_name(), '', time() - 3600);
        if ($stmt->execute(['id' => $id])) {
            return true;
        }
        return false;
    }
1165750
public function session_destroy($session_id)
    {

        if (empty($session_id)) return false;

        // Build query
        $escaped_id = (string)addslashes(stripslashes($session_id));
        $sql        = (string)"DELETE FROM `{$this->_db_name}`.`user_session` WHERE `session_id` = '$escaped_id'";

        return $this->db->query((string)$sql);
    }
781617
public static function destroy($id)
    {
        $table = self::getTableNameFromClass();

        self::getOne($id);

        $query = "DELETE FROM $table WHERE id = ".$id;

        try {
            Connection::db()->query($query);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
351418
public function destroy($sessionId)
    {

        // delete the record associated with this id
        $sql = "DELETE FROM $this->table WHERE $this->idCol = :id";

        $stmt = $this->db->query($sql)
                    ->bind(':id', $sessionId)
                    ->execute();

        if ($stmt === false) {
            throw new Exception('Fail destroy session');
        }

        return true;
    }
1280573
public function delete($id)
    {
        $result = Eresus_CMS::getLegacyKernel()->db->delete($this->table, "`id`=$id");
        return $result;
    }
320662
function destroy($session_id) {

        // delete the current session id from the database
        $this->_mysql_query('

            DELETE FROM
                ' . $this->table_name . '
            WHERE
                session_id = "' . $this->_mysql_real_escape_string($session_id) . '"

        ');

        // return true if everything went well
        return ($this->_mysql_affected_rows() !== -1);

    }
638064
public function remove($id)
    {
        if (true === $result = @unlink($this->getCacheFile($id))) {
            $this->log('debug', sprintf('Cache data removed for id `%s`.', $id));
        }

        return $result;
    }
1349976
public function remove($id)
    {
        try {
            if ($this->softDelete) {
                $removed = [];
                $removed[$this->primaryKey] = $id;
                $removed[$this->softDeleteName] = date('Y-m-d H:i:s');

                $this->save($removed);
            } else {
                $this->db->delete($this->table, array(
                    $this->primaryKey => $id
                ));
            }

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }