Delete Folder


Updated: May 13, 2016

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

The Delete Folder activity deletes a folder, sub-folders, or the entire folder tree of a directory on the local file system or a network location specified using a UNC path. You can delete temporary folders that were created when a runbook runs or you can use this activity to purge data that has been recently archived.

Before you configure the Delete Folder activity, you need to determine the following:

  • The folder name you are targeting.

  • Whether you are going to delete the entire tree; delete the sub-folders only; or delete just the directory.

Use the following information to configure the Delete Folder activity.

Details Tab

SettingsConfiguration Instructions
PathType the path of the folder that you are targeting.
Delete the folder only if it is emptySelect this option to delete the folder only if there are no files or sub-folders in it.
Delete all files and sub-foldersSelect this option to delete the specified folder and all sub-folders and files contained in that folder.

Published Data

The following table lists the published data items.

Folder pathThe path of the folder that was deleted.
Folder pattern to matchThe pattern used to find the sub-folder that was deleted.
Base Folder to start deletion fromThe Path that was specified on the Details tab.
Delete folder optionsThe option that you selected for the delete folder operation.
Name and path of the folderThe name and path of the folder that was deleted.