Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the user profile, quick links, and alert data from the user profile database for the specified account name.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Sub RemoveUserProfile ( _
strAccountName As String _
)
'Usage
Dim instance As UserProfileManager
Dim strAccountName As String
instance.RemoveUserProfile(strAccountName)
public void RemoveUserProfile(
string strAccountName
)
Parameters
strAccountName
Type: System.StringThe account name for the user profile to be deleted from the user profile database.
Remarks
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".