Script did not remove logs properly