CleanupSession

The command CleanupSession instructs KCM Core to close the session associated with the current job and clean up all resources stored in the session directory. For more information on sessions, see KCM Core sessions.

Syntax

 CleanupSession;

The command CleanupSession removes the directory structure created by the command CreateSession. After the command CleanupSession completes, the constant _sessiondir becomes empty, the constant _session_active is set to False, and the constant _sessionid becomes empty. The command CleanupSession fails if the active job is not associated with a session.