slapi_entry_attr_delete()

slapi_entry_attr_delete() deletes an attribute from an entry.

Syntax
#include "slapi-plugin.h"
int slapi_entry_attr_delete (Slapi_Entry *e, char *type);
Parameters
e
The entry from which you want to delete the attribute.
type
Indicates the name of the attribute that you want to delete.
Returns
If the attribute is successfully deleted, then 0 is returned, 1 is returned if the specified attribute is not part of the entry, or -1 is returned if an error occurs.