Defined the behaviors for deleting a session.