Originally Posted By: Richard H.
The command to delete a folder is RD (documented in the manual) however the folder must be empty.


This was fixed in version 4.52 of KiXtart. The RD command should now properly remove the entire folder and contents.

 Quote:
RD

Action: Removes the directory specified.

Syntax: RD "directory" [/s]

Remarks: The /s parameter will remove the specified directory including all files and subdirectories below it. CAUTION: Just as its command line counterpart, this file will delete all files including those that are hidden, system and/or read-only. Use this command with great care.

Check the value of @ERROR to see if RD was successful.





 Quote:
Release notes for KiXtart 2010 (version 4.52)


New functionality/enhancements:

1) CompareFileTimes has been enhanced so it can operate on open files.

2) RD can now delete an entire directory tree (including any files) using
the new "/s" parameter.

Examples:
RD "c:\somedirectory" ; deletes "somedirectory" unless it contains
; files or subdirectories

RD "c:\somedirectory" /S ; deletes "somedirectory" including any files
; and subdirectories it may contain

NOTE: Just as its commandline counterpart, KiXtart's "RD /s" command
deletes ALL files, including hidden, system and read-only files.
Use this command with great care!