SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm making the creating of custom user properties automatically, so when the feature is activated the few user profiles properties will be created, how to do that i found on msdn (

But now the real question how do i delete those properties on feature deactivated? Beacause CoreProperty doesnt have the delete method.

share|improve this question

If i understood you clearly, CorePropertyManager have remove methods. You can use one of whem.

share|improve this answer
Oh you are right, RemovePropertyByName(), ty. But what if that property doesnt exist will it raise error – Igorok Dec 26 '11 at 9:07
Might you use method CorePropertyManager.GetPropertyByName to check? If not, it might be helpfull to check It in CorePropertyManager.Properties ArrayList – IAfanasov Dec 26 '11 at 13:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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