Remove-MapiProfile

Description

Deletes one or more MAPI profiles.

Syntax

Note: Parameters in orange are optional.

Remove-MapiProfile
-ProfileNameString[]

 

Parameters

ProfileNameA list of one or more string values, each one being the name of a MAPI profile.
Wildcards are allowed in the same pattern as would be use to filter files in the file system, namely '*' and '?'.

Remarks

This cmdlet deletes one or more MAPI profiles for the current user.

MAPI stores profile detail on a per-user basis.  As such, this cmdlet can only access profiles for the user context under which powershell is executed.  Running this cmdlet as an administrator will provide access to the MAPI profiles for that account, which may not be the user expected.

A profile that is in use can be deleted, however the underlying data about the profile will not be removed until the last MAPI session using the profile is dropped.