| 
       | 
        
       | Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.Kill  | 
      
Function Kill(FileName As String) As Boolean
Member of CorelScriptTools
The Kill method deletes a file. Using this method is the same as clicking File } Delete in the Windows Explorer or in My Computer in Windows.
•  | 
  An open file cannot be deleted.
  | 
The following VBA example deletes the file temp.out in the current folder.
KILL "temp.out"  | 
The following VBA example deletes the file temp.out in the C:\MyDocs folder.
KILL "C:\MyDocs\temp.out"  | 
| 
       | 
        
       | 
		      
		          
		             | 
      
Copyright 2013 Corel Corporation. All rights reserved.