I was successful in adding picklist values through the IDE but unable to remove them directly from the metadata xml.

Is there something I'm missing or is this a known issue.


package.xml, which is what the force.com IDE uses, does not allow you to delete metadata components. The only way to delete metadata components through the metadata api is with something called destructivechanges.xml.

If you want to do this in a scriptable fashion then the force.com migration tool is your best bet but otherwise you can just delete it manually through the UI.


I remember trying this a few months ago using destructive changes and it didn't work. It seems like your only option is to do it manually or use javascript (depending on what you want to do).

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.