remove log in a script.