Try this:

Code:
alias clearall {
  var %a = $findfile(\whatever-the-folder-pathroot-is,*.txt,0)
  while (%a > 0) { 
    write -c $findfile(\whatever-the-folder-pathroot-is,*.txt,%a)
    dec %a
  }
}



Scripto ---- Life is about the relationships. The correct code being: $replace($them,$you,$me)