since '11
SetCustomFieldDefinitions
1  Developer
 
Redefines all custom field definitions for a community with a complete set. Existing fields are updated or deleted if not present in the new complete set.
Files (i.e. sample code, sample xml, etc)