erase useless code and files