SurrealDB Docs Logo

Enter a search query

->unset()

Removes a parameter for this connection.

Method Syntax
$db->unset($key)

Arguments

ArgumentsTypeDescription
key requiredstring

Specifies the name of the variable.

Example usage

// Remove the variable from the connection
$db->unset('name');