Skip to content
Developer Edition runs on one host and does not require a product license file. Need multi-host deployment or performance testing at scale? Explore Enterprise Edition

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.

Syntax

session_reset_command
SESSION RESET SCHEMA GRAPH parameter_name , ALL PARAMETERS

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.

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.

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