SFTP Function to move files to archive folder and delete the files from the current location

steve hawk 6 Reputation points
2020-10-01T14:40:12.957+00:00

Hi All,I have a data pipeline to get the files from an SFTP Server and COPY into ADLS Gen2. Now i want to add an additional functionality. After the COPY Activity i want to move those files to an Archive folder and delete the files from the Current folder. I have done this using SSIS in the past , but not with ADF. Please any advice or document will be great.
Thanks

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2020-10-02T21:34:52.923+00:00

    Hi @steve hawk , @Vaibhav Chaudhari , as per my analysis deleterFileAfterCompletion property is only available when you use binary format dataset.

    If your dataset format is other than binary, then in order to delete the files after copying, chain your Copy activity to a Delete activity to delete the files from source location.

    To explore about Delete activity, please refer to this doc: Delete Activity in Azure Data Factory

    Below data stores are supported for Delete activity:

    • Azure Blob storage
    • Azure Data Lake Storage Gen1
    • Azure Data Lake Storage Gen2
    • Azure File Storage
    • File System
    • FTP
    • SFTP
    • Amazon S3
    • Google Cloud Storage
    • HDFS

    Hope this helps. Let us know if you have further query.
    Thank you


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.