I replied to the post on SL

http://www.scriptlogic.com/support/forums/display_message.asp?mid=6572

The DEL command in KiXtart 2001 4.21 Release Candidate 1 does not set @ERROR even when dealing with one single file.

$myfile='C:\TEMP\TEST.TXT'
DEL $myfile
? 'File deletion returned error is: '+@ERROR+' '+@SERROR

If you run this over and over again you will keep getting

File deletion returned error is: 0 The operation completed successfully.

Even though the file does not exist.

v4.12 sets the @ERROR to 2 like it should.