SurrealDB Docs Logo

Enter a search query

.unset()

Removes a parameter for this connection.

Method Syntax
async db.unset(key: string)

Arguments

ArgumentsDescription
key required

Specifies the name of the variable.

Example usage

// Remove the variable from the connection
await db.unset('name');

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install