oFSO = CreateObject( ‘Scripting.FileSystemObject’ )
oFSO.DeleteFolder( ‘MyFolder2Delete’, .T. )
The second parameter tells the Windows Script Host to delete folders with the read-only attribute set. But do be careful when you use this method! The folders and files are deleted without being sent to the recycle bin, so once deleted they are gone forever.