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

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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