Source: https://dev-docs.nebula-graph.io/v5.3.2/database-gql-reference/sessions/reset/ Documentation version: v5.3.2 # SESSION RESET command The SESSION RESET command resets the schema, graph, or temporary graph in the current session, and deletes all parameters set in the session. - To view the schema in the current session, use [SHOW CURRENT_SCHEMA](https://dev-docs.nebula-graph.io/v5.3.2/database-gql-reference/data-admin/show/show-current-schema/). - To view the graph or temporary graph in the current session, use [SHOW CURRENT_GRAPH](https://dev-docs.nebula-graph.io/v5.3.2/database-gql-reference/data-admin/show/show-current-graph/). - To view the parameters set in the current session, use [SHOW PARAMETERS](https://dev-docs.nebula-graph.io/v5.3.2/database-gql-reference/data-admin/show/show-parameters/). ## Syntax diagramsource session_reset_command ```` session_reset_command ::= 'SESSION' 'RESET' ( 'SCHEMA' | 'GRAPH' | parameter_name (',' parameter_name)* | 'ALL PARAMETERS' ) ```` ## Parameters ### `SCHEMA` Resets the schema in the current session. - If no home schema is set for the current user, the schema is reset to `/default_schema`. - If an accessible home schema is set for the current user, the schema is reset to that home schema. - If the home schema does not exist or the current user does not have `USAGE` on it, the schema in the current session is cleared. ### `GRAPH` Resets the graph in the current session. - If no home graph is set for the current user, the graph or the temporary graph in the current session is reset to an unassigned state, meaning the session is not associated with any graph or temporary graph. - If an accessible home graph is set for the current user, the graph in the current session is reset to that home graph. - If the home graph does not exist or the current user does not have `USAGE` on its parent schema, the graph in the current session is cleared. For more information about Schema `USAGE`, see [Schema access control](https://dev-docs.nebula-graph.io/v5.3.2/server-admin/authorization/schema-access-control/). ### `parameter_name` Deletes the specified parameter set in the current session. ### `ALL PARAMETERS` Deletes all parameters set in the current session. ## Examples The following examples are based on the session settings introduced in the Examples section of [SESSION SET](https://dev-docs.nebula-graph.io/v5.3.2/database-gql-reference/sessions/set/). ### Reset the schema for the current session ```` SESSION RESET SCHEMA ```` ### Reset the graph or temporary graph for the current session ```` SESSION RESET GRAPH ```` ### Delete specified parameters ```` SESSION RESET $i_1, $i_2 ```` ### Delete all parameters ```` SESSION RESET ALL PARAMETERS ````