Sub DeleteContact()
'Ensure reference to the outlook object is made.
Dim olSession As Outlook.Application
Dim olNamespace As NameSpace
Dim olContacts As Outlook.MAPIFolder
Dim olItem As ContactItem
Set olSession = New Outlook.Application
Set olNamespace = olSession.GetNamespace("MAPI")
Set olContacts = olNamespace.GetDefaultFolder(olFolderContacts)
For Each olItem In olContacts.Items
olItem.Delete
Next
Set olSession = Nothing
Set olNamespace = Nothing
Set olContacts = Nothing
End Sub