24.10. slapi_entry_attr_delete()

Deletes an attribute (and all its associated values) from an entry.
Syntax

#include "slapi-plugin.h"
int slapi_entry_attr_delete( Slapi_Entry *e, const char *type );

Parameters

This function takes the following parameters:

e
Entry from which you want to delete the attribute.
type
Attribute type that you want to delete.
Returns

This function returns one of the following values:

  • 0 if successful.
  • 1 if the specified attribute is not part of the entry.
  • -1 if an error occurred.