delete_map_entry
Use the delete_map_entry command to delete an entry from the currently selected NIS map stored in memory. The delete_map_entry command changes the NIS map in memory and in Active Directory. You do not need to save the NIS map for the deleted entry to take effect in Active Directory.
Zone Type
Not applicable
Syntax
delete_map_entry key:index
Abbreviation
dlme
Options
This command takes no options.
Arguments
This command takes the following argument:
| Argument | Type | Description |
|---|---|---|
| key:index | string | Required. Specifies the key of the NIS map entry to delete followed by a colon : and the index number of the key. |
Return Value
This command returns nothing if it runs successfully.
Examples
delete_map_entry calla:1
This example deletes the NIS map entry with the key value “calla” and index number 1 from the currently selected NIS map.
Related Commands
Before you use this command, you must have a currently selected NIS map stored in memory. The following commands enable you to view and select the NIS map to work with:
get_nis_mapsreturns a Tcl list of NIS maps in the currently selected zone.list_nis_mapslists tostdoutall of the NIS maps in the currently selected zone.new_nis_mapcreates a new NIS map and stores it in memory.select_nis_mapretrieves a NIS map from Active Directory and stores it in memory.
After you have a NIS map stored in memory, you can use the following commands to work with that map’s entries:
get_nis_maporget_nis_map_with_commentreturns a Tcl list of the map entries in the currently selected NIS map.get_nis_map_fieldreads a field value from the currently selected NIS map.list_nis_maporlist_nis_map_with_commentlists tostdoutthe map entries in the currently selected NIS map.add_map_entryoradd_map_entry_with_commentadds an map entry to the currently selected NIS map.