NavigationFolders.Remove method (Outlook)
Removes an object from the collection.
Syntax
expression.Remove (RemovableFolder)
expression A variable that represents a 'NavigationFolders' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
RemovableFolder | Required | NavigationFolder | The navigation folder to be removed. |
Remarks
Only removable folders, NavigationFolder objects with an IsRemovable property value set to True, can be removed from a NavigationFolders collection. This means that you can use NavigationFolders.Remove to remove shared folders, public folders, and linked folders. However, you must use Folder.Delete to remove any user-created folders.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.