Last updated on 
                
                    Apr 27, 2021
                
            
            
                 | 
                
                    Also applies to ColdFusion
                
            
        
        
            
        
    
Deleting a file
You can delete a specified file on the device as shown by the following example:
<cfset removeresponse=cfclient.file.remove(“myNewFile.txt”)>  | 
   
Method summary
remove(fileName) - deletes file specified by filename
- returns - true for successful removal
 - params   
- filename – Absolute or relative path of the file to be deleted (including the file name)