# Reset

`reset` – reset one or multiple session-level parameters

```edgeql-synopsis
reset module ;
reset alias <alias> ;
reset alias * ;
reset global <name> ;
```

## Description

This command allows resetting one or many configuration parameters of the current session.

## Variations

`reset module`:
Reset the default module name back to "default" for the current session.

For example, if a module `foo` contains type `FooType`, the following is how the `set` and `reset` commands can be used to alias it:

```edgeql
# Set the default module to "foo" for the current session.
set module foo;

# This query is now equivalent to "select foo::FooType".
select FooType;

# Reset the default module for the current session.
reset module;

# This query will now produce an error.
select FooType;
```



`reset alias <alias>`:
Reset `<alias>` for the current session.

For example:

```edgeql
# Alias the "std" module as "foo".
set alias foo as module std;

# Now "std::min()" can be called as "foo::min()" in
# the current session.
select foo::min({1});

# Reset the alias.
reset alias foo;

# Now this query will error out, as there is no
# module "foo".
select foo::min({1});
```



`reset alias *`:
Reset all aliases defined in the current session. This command affects aliases set with [`set alias`](https://docs.geldata.com/reference/reference/edgeql/sess_set_alias.md#statement::set) and [`set module`](https://docs.geldata.com/reference/reference/edgeql/sess_set_alias.md#statement::set). The default module will be set to "default".

Example:

```edgeql
# Reset all custom aliases for the current session.
reset alias *;
```



`reset global <name>`:
Reset the global variable *name* to its default value or `{}` if the variable has no default value and is `optional`.



## Examples

```edgeql
reset module;

reset alias foo;

reset alias *;

reset global current_user_id;
```

|                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------- |
| **See also**                                                                                                                           |
| [Reference > EdgeQL > Set](https://docs.geldata.com/reference/reference/edgeql/sess_set_alias.md#ref-eql-statements-session-set-alias) |

