cycle of deleting history log