Hammer's code is best of all those stated, but if you want to expand it and make a window to tell you what it's deleting try:
Code:
 alias delxcx { 
var %a = 1, %b, %c = $1 
window @Clear
aline @Clear Started *.xcx deleting session in %c !
while ($findfile(%c,*.xcx,%a)) { 
set %b $ifmatch
remove %b
aline @Clear File: %b found and deleted (No: $+ %a $+ )
inc %a } 
if (%a == 1) { 
No .xcx file found in %c } 
} 

The directory is a variable in this case

Last edited by gerdigos; 17/02/03 01:50 PM.