Delete File/Directory
Operation name
Delete File/Directory
Function overview
Deletes the file or directory.
Properties
For details on use of variables, refer to Variables.
Basic settings
| 
                                                                     Item name  | 
                                                                
                                                                     Required/Optional  | 
                                                                
                                                                     Use of variables  | 
                                                                
                                                                     Description  | 
                                                                
                                                                     Remarks  | 
                                                            
|---|---|---|---|---|
| 
                                                                     Name  | 
                                                                
                                                                     Required  | 
                                                                
                                                                     Not available  | 
                                                                
                                                                     Enter a name to use on the script canvas.  | 
                                                                
                                                                     
  | 
                                                            
Required settings
| 
                                                                     Item name  | 
                                                                
                                                                     Required/Optional  | 
                                                                
                                                                     Use of variables  | 
                                                                
                                                                     Description  | 
                                                                
                                                                     Remarks  | 
                                                            
|---|---|---|---|---|
| 
                                                                     Target path  | 
                                                                
                                                                     Required  | 
                                                                
                                                                     Available  | 
                                                                
                                                                     Enter the path of the file or directory to delete. The Browse button launches a file chooser that allows you to select a file.  | 
                                                                
                                                                     Note
                                                                         
                                                                
  | 
                                                            
Option
| 
                                                                     Item name  | 
                                                                
                                                                     Required/Optional  | 
                                                                
                                                                     Use of variables  | 
                                                                
                                                                     Description  | 
                                                                
                                                                     Remarks  | 
                                                            
|---|---|---|---|---|
| 
                                                                     Disable force delete  | 
                                                                
                                                                     Optional  | 
                                                                
                                                                     Not available  | 
                                                                
                                                                     Select whether to force delete a directory that isn't empty. 
  | 
                                                                
                                                                    
  | 
                                                            
| 
                                                                     Error when file/directory doesn't exist  | 
                                                                
                                                                     Optional  | 
                                                                
                                                                     Not available  | 
                                                                
                                                                     Select whether to raise an error when the specified file or directory doesn't exist. 
  | 
                                                                
                                                                     
  | 
                                                            
Comment
| 
                                                                     Item name  | 
                                                                
                                                                     Required/Optional  | 
                                                                
                                                                     Use of variables  | 
                                                                
                                                                     Description  | 
                                                                
                                                                     Remarks  | 
                                                            
|---|---|---|---|---|
| 
                                                                     Comment  | 
                                                                
                                                                     Optional  | 
                                                                
                                                                     Not available  | 
                                                                
                                                                     You can write a short description of this connector.  | 
                                                                
                                                                     
  | 
                                                            
Schemas
Input schema
None.
Output schema
None.
Transaction
Transaction isn't supported.
Parallel Stream Processing
PSP isn't supported.
Available component variables
| 
                                                                 Variable name  | 
                                                            
                                                                 Description  | 
                                                            
                                                                 Remarks  | 
                                                        
|---|---|---|
| 
                                                                 success  | 
                                                            
                                                                 The result of the operation is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 deleteCount  | 
                                                            
                                                                 The number of files or directories deleted is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 message_category  | 
                                                            
                                                                 When an error occurs, the category of the message code corresponding to the error is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 message_code  | 
                                                            
                                                                 When an error occurs, the code of the message code corresponding to the error is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 message_level  | 
                                                            
                                                                 When an error occurs, the severity of the message code corresponding to the error is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 error_type  | 
                                                            
                                                                 When an error occurs, the error type is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 error_message  | 
                                                            
                                                                 When an error occurs, the error message is stored.  | 
                                                            
                                                                
  | 
                                                        
| 
                                                                 error_trace  | 
                                                            
                                                                 When an error occurs, the trace information for the error is stored.  | 
                                                            
                                                                
  | 
                                                        
Message codes, exception messages, and limitations
| 
                                                                 Connector  | 
                                                            
                                                                 Message code  | 
                                                            
                                                                 Exception message  | 
                                                            
                                                                 Limitations  | 
                                                        
|---|---|---|---|