Script to delete a file if already exists in SSIS

  • Hi,

    Does anybody know of a script which can be written in SSIS script task to delete a file if it already exists in a specific folder ? Thanks.

  • I would use a file system task instead.  No need to reinvent the wheel.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • pwalter83 - Monday, October 1, 2018 10:12 AM

    Hi,

    Does anybody know of a script which can be written in SSIS script task to delete a file if it already exists in a specific folder ? Thanks.

    This is one of the simplest pieces of C# you can write. What have you tried so far?

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply