Deleting An Entry Using Ldif - Netscape DIRECTORY SERVER 6.2 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

To delete the 555-1212 telephone number from this entry, use the following LDIF
update statement:
dn: cn=Barney Fife,ou=People,dc=example,dc=com
changetype: modify
delete: telephonenumber
telephonenumber: 555-1212
Barney's entry then becomes:
cn=Barney Fife,ou=People,dc=example,dc=com
objectClass: inetOrgPerson
cn: Barney Fife
sn: Fife
telephonenumber: 555-5678

Deleting an Entry Using LDIF

Use
changetype:delete
delete leaf entries. Therefore, when you delete an entry, make sure that no other
entries exist under that entry in the directory tree. That is, you cannot delete an
organizational unit entry unless you have first deleted all the entries that belong to
the organizational unit.
For example, of the following three entries:
ou=People,dc=example,dc=com
cn=Paula Simon,ou=People,dc=example,dc=com
cn=Jerry O'Connor,ou=People,dc=example,dc=com
you can delete only the last two entries. The entry that identifies the People subtree
can be deleted only if no other entries exist below it.
The following LDIF update statements can be used to delete person entries:
dn: cn=Pete Minsky,ou=People,dc=example,dc=com
changetype: delete
dn: cn=Sue Jacobs,ou=People,dc=example,dc=com
changetype: delete
CAUTION
Do not delete the suffix
Administration Server uses this suffix to store information about
installed Netscape servers. Deleting this suffix could force you to
reinstall all of your Netscape servers, including the Directory
Server.
to delete an entry from your directory. You can only
o=NetscapeRoot
LDIF Update Statements
. The Netscape
Chapter 2
Creating Directory Entries
71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents