SQL Server Integration Services (SSIS) - Delete local file using FTP Task in SSIS Package


Introduction

In this article we are going to see how to use a FTP task in SSIS package to delete a local file using FTP Task in SSIS packaging.

To follow my series of articles on SSIS packages refer to my profile for the links.

Steps:

Follow steps 1 to 3 in my first article to open the BIDS project and select the right project to work on integration services project. Once the project is created, we will see how to use a FTP task container. Drag and drop the FTP task as shown in the screen below.



Now double click on the task to open the property window and set the properties as shown in the screen below.



The above image is for setting the FTP Connection, end user need to provide the correct connection settings and click on the Test Connection to confirm if the connection is valid. 

Now in the file transfer tab we need to set the property since in our example we are going to delete some file in the local box we need to set as below. Here input variable is used to get the path where we need to delete the files locally.



Here once you have given valid credentials by running directly the package will do the necessary steps of deleting the files in the local server using the FTP Task.

Conclusion

So in this article we have seen on how to delete the files in the local server.

Up Next
    Ebook Download
    View all
    Learn
    View all