_NavigationGroups.Delete method

Deletes the specified NavigationGroup object from the NavigationGroups collection.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

void Delete(
	NavigationGroup Group


Type: Microsoft.Office.Interop.Outlook.NavigationGroup

The navigation group to be deleted.

The Delete method raises an error if:

  • The navigation group specified in Group contains navigation folders in its NavigationFolders collection.

  • The GroupType property of the navigation group specified in Group is set to olMyFoldersGroup.

  • The parent of the NavigationGroups collection is a MailModule object.