oFSO = CREATEOBJECT("Scripting.FileSystemObject") >* lcdir is the directory to delete >oFSO.DeleteFolder(lcdir, .T.)Note that this deletes the folder, files, any sub-folders completely. IOW, they're not sent to the Recycle bin. The .T. parameter forces the deletion of any read-only files. All other file, including hidden and system folders are deleted regardless.
oFSO.DeleteFolder(lcdir) && delete the folder, subfolders and files oFSO.DeleteFile(lcfile, .T.) && delete any file, even read-only