Red Hat Directory Server 8.0 Administrator's Guide
1. Delete an entire index entry or delete unwanted index types from an existing index entry
using the ldapdelete command-line utility (Section 3.2.1, “Deleting an Index Entry”).
2. Generate the new set of indexes to be maintained by the server using the db2index.pl Perl
script (Section 3.2.2, “Running the db2index.pl Script”).
3.2.1. Deleting an Index Entry
Use the ldapdelete command-line utility to delete either the entire indexing entry or the
unwanted index types from an existing entry.
• To delete the indexes for a particular database, remove the index entry from the
cn=index,cn=database_name,cn=ldbm database,cn=plugins,cn=config entry, where
cn=database_name corresponds to the name of the database.
• To delete a default index, remove it from the cn=default indexes,cn=config,cn=ldbm
database,cn=plugins,cn=config entry.
1. Run ldapdelete.
1
ldapdelete -D "cn=Directory Manager" -w password -h ExampleServer
-p 389 "cn=sn,cn=index,cn=Example1,dn=ldbm
database,cn=plugins,dn=config"
For complete information on ldapdelete, see the Directory Server Configuration, Command,
and File Reference.
2. For example, delete the presence, equality, and substring indexes for the sn attribute on the
database named Example1:
dn: cn=sn,cn=index,cn=Example1,cn=ldbm database,cn=plugins,cn=config
objectClass:top
objectClass:nsIndex
cn:sn
nsSystemIndex:false
nsIndexType:pres
nsIndexType:eq
nsIndexType:sub
nsMatchingRule:2.16.840.1.113730.3.3.2.3.1
Table 10.5, “ldapdelete Options” describes the ldapdelete options.
Option Description
-D Specifies the distinguished name with which
to authenticate to the server. The value must
Deleting Indexes from the Command-Line
383