| Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
To delete an item from a folder, use the DeleteRecord method on an ADO Record object of that item you want to delete.
Dim Rec
Dim strURL
Dim DomainName
Dim strLocalPath
'specify your own domain
DomainName = "microsoft.com"
'specify a URL to the folder or item to delete
strLocalPath = "public folders/territories"
Set Rec = CreateObject("ADODB.Record")
'this URL is for a public folder
strURL = "file://./backofficestorage/" & DomainName & "/" & strLocalPath
Rec.Open strURL
Rec.DeleteRecord("/east.txt")
Rec.Close
Dim oDelRec As New ADODB.Record 'Assume strURL is a string variable 'that contains a valid URL oDelRec.Open strULR oDelRec.DeleteRecord Set oRec = Nothing