File Processor Connector

File Processor Connector

Deleting Files from an FTP or SFTP Server

Deleting Files from an FTP or SFTP Server

Use File Processor Connector to delete files from an FTP or SFTP server. You can use the FTP_DELETE and SFTP_DELETE objects to delete files from an FTP or SFTP server.
You can delete all files from a folder, delete specific files from a folder, or delete specific files using the File_Path field.
  • To delete all the files from a folder, specify the folder path in the
    Source File Directory
    connection property. Also, in the
    Select File
    connection property, select
    All
    . You do not need to filter by the File_Path field when you create a mapping.
  • To delete only specific files from a folder, specify the folder path in the
    Source File Directory
    connection property. Also, in the
    Select File
    connection property, you can select options such as
    FileExtension
    ,
    Startswith
    ,
    Endswith
    , or
    Contains
    , based on your requirements. You do not need to filter by the File_Path field when you create a mapping.
  • To delete files that are present in the FTP or SFTP server location, but do not list in the
    Select File
    property dropdown in the File Processor connection, you must specify the path of the files that you want to delete in a file in the Secure Agent location.
    In the mapping, you can filter by the File_Path field. You must specify the absolute path of the file that stores the path of the files in the File_path field.
    If there are multiple files in the file that stores the path of the files and even if one file is not present in the specified location, the SFTP delete operation fails to delete that file and the successive files. In this case, the task retries the delete operation based on the retry count value that you specified in the advanced properties of the mapping. However, if there are multiple files in the file that stores the path of the files and if one file is not present in the specified location, the FTP delete operation deletes all the other files that are present in the specified location.

0 COMMENTS

We’d like to hear from you!