Export (0) Print
Expand All

UserProfileManager.RemoveUserProfile method (Guid)

Removes the user profile, quick links, and alert data from the user profile database for the specified GUID.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

public void RemoveUserProfile(
	Guid guidDelete
)

Parameters

guidDelete
Type: System.Guid

The unique identifier for the user profile to be deleted from the user profile database.

To remove your own user profile you must have PortalRight.UseSubscription permission. To remove a user profile for another user you must have PortalRight.ManageUserProfile permission. To remove your own user profile on the Web you must pass a string containing "UsePersonalFeatures".

Community Additions

ADD
Show:
© 2014 Microsoft