public static DeleteFieldsDefinition CreateDeleteContentTypeFields(params string[] fieldNames)
{
DeleteFieldsDefinition deleteFields = new DeleteFieldsDefinition();
deleteFields.Fields = new DeleteFieldsDefinitionMethod[fieldNames.Length];
for (int i = 0; i < fieldNames.Length; i++)
{
deleteFields.Fields[i] = new DeleteFieldsDefinitionMethod();
deleteFields.Fields[i].ID = Guid.NewGuid().ToString();
deleteFields.Fields[i].Field = new DeleteFieldDefinition();
deleteFields.Fields[i].Field.Name = fieldNames[i];
}
return deleteFields;
}