deleteSession function

Delete the session.