Delete Custom Attribute
To delete all custom attributes:
NAEUserModifyRequest nsm=new NAEUserModifyRequest.Builder().userName (username).deleteAllCustomAttrs().build();
boolean isModified=processor.modifyUser(nsm);
Deleting custom attributes by name
To delete custom attribute by name:
List<String>attributesToDelete = new ArrayList<>();
attributesToDelete.add("name of custom attribute");
NAEUserModifyRequest nsm=new NAEUserModifyRequest.Builder().userName(username).customAttrsToDelete(attributesToDelete).build();
boolean isModified=processor.modifyUser(nsm);