I am using sp 2010. How can I remove a userprofile from the User Profile Service Application in Powershel?


You need to get a reference to the UserProfileManager object, get the user profile object, and then call RemoveUserProfile() on it. Here is an example script:


Note that this particular script deletes ALL user profiles; you'll need to modify it to locate a specific user profile (using a login name, for example) before deleting just that one profile.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.