_NameSpace.RemoveStore Method

Removes a Personal Folders file (.pst) from the current MAPI profile or session.

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

[DispIdAttribute()]
void RemoveStore(
	MAPIFolder Folder
)

Parameters

Folder
Type: Microsoft.Office.Interop.Outlook.MAPIFolder

The Personal Folders file (.pst) to be deleted from the list.

This method removes a store only from the Microsoft Outlook user interface. You cannot remove a store from the main mailbox on the server or from a user's hard disk using the Outlook object model.

Show: