Remove useless config and session