remove unnecessary code and assets.