Zoomed Image

AMSX Scripting Language - Command : emptyfolder

Summary

Delete all files from a folder, optionally including subfolders

Description

Removes all files from the specified folder. Can optionally also delete subfolders and their contents. Can optionally throw an error if any file is locked rather than silently skipping it. File permissions are checked against the permitted folders list.

Parameters

ParameterDescription
cmdFolder path to empty
Argument 0True to also delete subfolders (default: False)
Argument 1True to throw an error if a file is locked and cannot be deleted (default: False)

Syntax


EmptyFolder "Folder path to empty", "True to also delete subfolders (default: False)", "True to throw an error if a file is locked and cannot be deleted (default: False)"

Return to the AMSX Command Reference