Skip to content

Clean Up Folder

Deletes all files and folders from a specified folder.

Properties

NameDescriptionRequired
Continue on errorSpecifies to continue executing the remaining activities even if the current activity failed. Only boolean values are allowed.
Delete Empty FoldersDetermines if the left empty folders after files deletion must also be deleted.
Files DeletedThe number of files that were deleted.
Folder PathThe folder path to be cleaned up.☑️
Folders DeletedThe number of folders that were deleted.
Last Write TimeDeletes only the files with last write time till this reference date. Default is DateTime.Now.
Search OptionSpecifies whether the search operation should include only the current directory or should include all subdirectories.
Search PatternThe search string defines file name patterns in the path. It supports literal text and wildcards (, ?, !, |), but not regular expressions. Use ! for exclusions (e.g., !.txt), and | for multiple patterns (e.g., .png|.gif|*.jpeg). Default is . (all files).