folder delete
Deletes the named folder. This command is recursive, deleting all contained files and folders. An action script with the delete command will terminate if the folder exists but cannot be deleted. This can happen due to write protection or an attempt to delete from a CD-ROM, for instance. This action will also fail (and leave the contents of the folder in an indeterminate condition) when the folder contents are busy, as can happen when a file inside the folder is in use by another application.
If the folder does not exist at all, however, the action script will continue to execute.
Syntax
folder delete <FolderName>
Where FolderName is the name of the folder to delete (typically enclosed in quotes to preserve spaces). Relevance substitution is performed on the arguments of delete folder command lines.
Examples
folder delete "c:\program files\bigsoftdir"
folder delete "{name of drive of windows folder}\Temp"
These examples delete the specified folders. Note that you can use variable substitution (in curly brackets) to specify pathnames.
Version 8.0