Profile profile = currentSone.getProfile();
Field field = profile.getFieldById(fieldId);
if (field == null) {
return createErrorJsonObject("invalid-field-id");
}
profile.removeField(field);
currentSone.setProfile(profile);
webInterface.getCore().touchConfiguration();
return createSuccessJsonObject().put("field", new ObjectNode(instance).put("id", new TextNode(field.getId())));
}