Delete File/Folder

Operation name

Delete File/Folder

Function overview

Deletes file/folder on Google Drive.

Data model

The data model of this component is XML type.

Properties

= Remarks =

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 that is used on the script canvas.

 

Required settings

Item name

Required/Optional

Use of variables

Description

Remarks

Destination

Required

Not available

Select a connection resource.

Add

A new connection resource can be added.

Edit list

Connection resource settings can be edited in > HULFT INTEGRATE > Connections.

 

Drive type

Required

Not available

Select the drive to perform the operation.

My drive

(Default)

Set "My drive" for the operation target.

Shared drive

Set "Shared drive" for the operation target.

 

Shared drive name

Required

Available

Select or enter a shared drive name.

  • Enabled when Shared drive is selected for Drive type.

Folder path

Required

Available

Enter a Google Drive folder path.

Note

Delete folder

Optional

Not available

Select whether to delete the folder specified in Folder path.

Selected

Delete the folder specified in Folder path and all files/folders in the folder.

Not selected

(Default)

Don't delete the folder specified in Folder path. Files/folders in the folder are deleted according to the settings of File/folder name and Recursive processing.

 

File/folder name

Required

Available

Specify a file/folder directly under the folder specified in Folder path

  • If a file is specified or if a file matches using wildcards, delete the file.

  • If a folder is specified, or if a folder matches using wildcards, whether to delete it or not depends on the settings of Recursive processing.

  • Disabled when Delete folder is selected.

  • Wildcards ("*" and "?") can be used.

  • "/" can't be included.

Recursive processing

Optional

Not available

For a specified folder, select whether to delete the file/folder recursively or not.

Selected

If the folder specified in File/folder name contains folders, delete the file/folder recursively.

Not selected

(Default)

Delete only the files in the specified folder.

 

Property actions

Item name

Description

Remarks

Refresh shared drive name list

Get shared drives in the specified destination and set them in Shared drive name.

  • Disabled when Destination isn't specified or My drive is selected for Drive type.

  • If Destination is specified/edited or a drive has been added/edited on Google Drive, the changes can be reflected using this property action.

Refresh list of folder paths

Get folder paths in the specified destination and set them to Folder path.

  • This property action is disabled in the following cases:

    • Destination isn't specified

    • Shared drive name isn't specified

    • A script variable is set in Shared drive name

  • If Destination and Shared drive name are specified/edited or a folder has been added/edited on Google Drive, the changes can be reflected using this property action.

Refresh list of item names

Get file/folder names in the specified folder path and set them in File/folder name.

  • If Folder path is specified/edited or a file/folder has been added/edited on Google Drive, the changes can be reflected using this property action.

  • If a variable is set to Folder path, or Delete folder is selected, this action will be invalid.

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

<?xml version="1.0"?>
<server>
  <files drivename="" drivetype="">
    <file name="" remotepath="" status="" type="" />
  </files>
</server>

Element name

Attribute name

Description

Remarks

server

-

 

 

files

-

 

 

drivename

Outputs the retrieved shared drive name.

 

drivetype

Outputs the retrieved drive type.

 

file

-

Appears once for each deleted file/folder.

  • Files/folders in the lower levels of the deleted folder don't appear.

name

Outputs the name of the deleted file/folder.

  • If status is "ErrorRemoteFolderNotFound", then the value is blank.

  • If Delete folder is selected, then the value is blank.

remotepath

Outputs the file path on Google Drive of the deleted file/folder.

 

status

Outputs the status of the deleted file/folder.

Deleted

The file/folder has been successfully deleted.

ErrorRemoteDriveNotFound

The specified Shared drive name doesn't exist on Google Drive.

ErrorRemoteFolderNotFound

The specified Folder path doesn't exist on the Google Drive, or a file is specified.

ErrorRemoteFileNotFound

The specified file/folder doesn't exist in the specified Folder path on Google Drive.

Error

The file/folder couldn't be deleted due to an error.

 

type

Outputs the classification of deleted file/folder.

File

File

Folder

Folder

 

Loading schema in Mapper

The schema is loaded automatically.

= Remarks =

For details, refer to Edit Schema.

Mass data processing

Mass data processing isn't supported.

Transaction

Transaction isn't supported.

Parallel Stream Processing

PSP isn't supported.

Available component variables

Component variable name

Description

Remarks

count

The number of deleted files and folders is stored.

  • The default value is null.

  • The sum of "folder_count" and "file_count".

folder_count

The number of deleted folders is stored.

  • The default value is null.

file_count

The number of deleted files is stored.

  • The default value is null.

message_category

When an error occurs, the category of the message code corresponding to the error is stored.

  • The default value is null.

message_code

When an error occurs, the code of the message code corresponding to the error is stored.

  • The default value is null.

message_level

When an error occurs, the severity of the message code corresponding to the error is stored.

  • The default value is null.

error_type

When an error occurs, the error type is stored.

  • The default value is null.

  • The format of the error type is as follows.

    Example: java.io.FileNotFoundException

error_message

When an error occurs, the error message is stored.

  • The default value is null.

error_trace

When an error occurs, the trace information for the error is stored.

  • The default value is null.

Message codes, exception messages, and limitations

Connector

Message code

Exception message

Limitations

Messages and limitations of the Google Drive connector

check

check

check