Remove useless files from core