Removes a schema element definition from the directory and from the local copy of schema in an LDAPSchema structure.
#include <ldap.h>
int ldap_schema_delete (
LDAPSchema *schema,
char *nameOrOid,
int type);
(IN) A handle to the schema of a directory.
(IN) A name or OID that identifies the schema definition to modify.
(IN) Type of element to modify. Use the definitions listed in Section 6.11, Schema Element Types.
See the LDAP Return Codes
for return values.
ldap_schema_delete removes a schema element definition from the from the local copy of schema in an LDAPSchema structure, ’schema’. Deletions are only made to the LDAPSchema structure. To commit deletions to the directory, call ldap_schema_save.