SSIS - Maintenance Cleanup Task

  • HI,

    Is there any way to have a file name 'like' to be deleted using the Maintenance Cleanup Task. The issue that I'm having is that, I have a two file names with the same file extension with *.rar, so I want to pick and delete only one of the file name.

    For example, I have a file name called: FileName_Backup_20101202.rar and FileName_Log_Backup_20101202.rar

    Everyday a new file name with date stamp at the end is created, so I want delete file names that start with FileName_Log_Backup every 3 days and FileName_Backup every 7 days. I can't use the "Search folder and delete files based on an extension" option because they have the same file name extension. How can I get this using Maintenance Clean Task or is there other way to do this?

    Thanks,

  • I don't think that's possible with the Maintenance Cleanup Task, since it's done on extension only. Have you tried the File System task?

    John

  • I just looked at it, but not sure how? How would the file system task help me?

  • Well, it has a Delete File operation. And you can dynamically define the connection, so you should be able to delete any file pattern you choose.

    John

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

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