Delete logs properly