delete unnecessary modules