Here's a quick little code that I wrote for another topic, but needed the same thing. A way to turn off the logging for all windows
Code:
 alias logoff {
  var %a = 1, %b = $window(*,0)
  while %a <= %b {
    log off $window(*,%a)
    inc %a
  }
}
 


As to deleting the files in a window, I'm confused, since windows (to my knowledge) don't contain files.