# unset

The ->unset() method for the SurrealDB SDK for PHP removes a parameter from the connection.

Removes a parameter for this connection.

```php title="Method Syntax"
$db->unset($key)
```

## Arguments
<table>
    <thead>
        <tr>
            <th colspan="2" scope="col">Arguments</th>
			<th colspan="2" scope="col">Type</th>
            <th colspan="2" scope="col">Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="2" scope="row" data-label="Arguments">
                <code>key</code>
                <label label="required" />
            </td>
			<td colspan="2" scope="row" data-label="Type">
				<code>string</code>
			</td>
            <td colspan="2" scope="row" data-label="Description">
                Specifies the name of the variable.
            </td>
        </tr>
    </tbody>
</table>

## Example usage
```php
// Remove the variable from the connection
$db->unset('name');
```
