24.28. slapi_entry_delete_values_sv()
This function removes an attribute/valueset from an entry. Both the attribute and its Slapi_Value data values are removed from the entry. If you supply a Slapi_Value whose value is NULL, the function will delete the specified attribute from the entry. In either case, the function returns LDAP_SUCCESS.
slapi_entry_delete_values() function. This function uses Slapi_Value attribute values instead of the now obsolete berval attribute values.
#include "slapi-plugin.h" int slapi_entry_delete_values_sv( Slapi_Entry *e, const char *type, Slapi_Value **vals );
This function takes the following parameters:
|
e
| Entry from which you want to delete values. |
|
type
| Attribute from which you want to delete values. |
|
vals
| Array of Slapi_Value data values that you want to delete. |
This function returns LDAP_SUCCESS if the specified attribute and the array of Slapi_Value data values are deleted from the entry.
NULL value, the attribute is deleted from the attribute list, and the function returns LDAP_NO_SUCH_ATTRIBUTE. As well, if the attribute is not found in the list of attributes for the specified entry, the function returns LDAP_NO_SUCH_ATTRIBUTE.
LDAP_OPERATIONS_ERROR. If this occurs, please report the problem to the Red Hat technical support.
The vals parameter can be NULL, in which case this function does nothing.
slapi_entry_delete_values()

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.