delete Log code