DeleteRecord Method
Deletes a file or directory, and all its subdirectories.
Syntax
DeleteRecord Source, Async
Parameters
Source Optional. A String value that contains a URL identifying the file or directory to be deleted. If Source is omitted or specifies an empty string, the file or directory represented by this Record is deleted.
Async Optional. A Boolean value that, when True, specifies that the delete operation is asychronous.
Remarks
Operations on the file or directory represented by this Record may fail after this method completes. After calling DeleteRecord, the Record should be closed because the behavior of the Record may become unpredictable depending upon when the Provider updates the Record with the data source.
If this Record was obtained from a Recordset, then the results of this operation will not be reflected immediately in the Recordset. Refresh the Recordset by closing and re-opening it, or by executing the Recordset Requery, or Update and Resync methods.