Skip to main content

Empty folder

Files & FoldersFoldersWrites files

Delete everything inside a folder, keeping the folder itself

Inputs

NameTypeRequiredDefaultDescription
Folder
folderPath
folderRequiredThe folder to clear. The folder itself is kept.
Only Files Matching
filePattern
stringOptionalOptional, e.g. *.csv. Leave blank to delete every file.
Also delete subfolders
includeSubfolders
booleanOptionalfalseOff by default. When on, subfolders and everything in them are removed.
Output Variable
outputVariable
variableOptionalFilesDeleted

Output

FilesDeletedNumber

How many files were deleted

Compatibility

WindowsLinuxAttendedUnattended

Related activities