Delete File

 

Updated: May 13, 2016

Applies To: System Center 2012 SP1 - Orchestrator, System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator

The Delete File activity deletes files from the local file system or from a network location specified using a UNC path. You can purge a folder that contains old log files.

Before you configure the Delete File activity, you need to know which files you are deleting.

Use the following information to configure the Delete File activity.

Details Tab

SettingsConfiguration Instructions
PathType the path and name of the file that you want to delete. You can use the * and ? wildcards to specify the file name. These wildcards behave in the same way as the Windows Command Prompt.
Delete files from sub-foldersSelect this option to delete any files within the sub-folders of the path you have specified that match the file name that you have specified.
File ageSelect the Is less than or Is more than option from the drop-down list to delete the files that are older or newer, respectively, than the number of days that you specify.
daysType the number of days that you will use with the file age measure.

Published Data

The following table lists the published data items.

ItemDescription
File age daysThe number of days that was provided to evaluate the file age.
File age optionThe option that was selected to evaluate the file age.
Name and path of the fileThe name and path of the file that was deleted.
File nameThe name of the file that was deleted.
Name and path of the file relative to the origin folderThe relative path of the file starting from the origin folder.
File operation statusDetermines whether the delete operation succeeded or failed.
Origin folderThe path of the base folder where the file was deleted from.
Number of failed file operationsThe number of files that were not deleted.
Number of successful file operationsThe number of files that were successfully deleted.
Total number of filesThe number of files that matched the file that you specified.
File pathThe path of the file that was deleted.
Delete files from sub-foldersIndicates whether the Delete files from sub-folders check box was selected.
Show: