Remove unnecessary session files.