Delete_Files
Reference: Add Delete_Files to Script
Script Editor Program
Alphabetical Command List
The File name to delete field can reference any server name. The /S option will apply the file mask to all sub-directories of the specified path. You may also include the /D modifier in place of /S and specify a directory name instead of a file name. This will delete the directory and its sub-directories. The entire tree must be empty for this to be successful. You should first delete the files with recursion and then delete the directory tree. Be sure to include a Wait_For_Completion command between the two deletes.
Note: When using wildcards, this command is considered successful even when there are no files that match the mask.