Added the function that delete data every half a day.