System Administration Guide: Naming and Directory Services (NIS+)

Removing NIS+ Single Table Entries

To remove a single entry from a table, use the -r option:


nistbladm -r indexed-name

This example removes the Manf-1 entry from the depts table:


rootmaster% nistbladm -r [Dept=Manf-1,Site=Emeryville,Name=hosteen],\
depts.doc.com.

You can specify as few column values as you wish. If NIS+ finds duplicates, it does not remove any entry and returns an error message instead. Thus, you could have removed the Manf-1 by specifying only the Site column value, as in this example:


rootmaster% nistbladm -r [Site=Emeryville],depts.doc.com.

However, you could not have removed the Sales entry by specifying only the Site column value (SanFran), because two entries have that same value (R&D and Sales):

Dept 

Site 

Name 

R&D

SanFran

kuznetsov

Sales 

SanFran

jhill

Manf-1 

Emeryville

hosteen

Manf-2 

Sausalito

lincoln