Deletes the specified NIS map.
void Delete(string mapName);
void Delete(IMap map);
Specify the following parameter when using this method:
The name of the NIS map you want to remove.
The NIS map you want to remove. (.NET only)
Delete throws a COMException if there is an LDAP error. LDAP errors can occur if the connection to the LDAP server fails, the connection times out, invalid credentials are presented, or there are other problems communicating with Active Directory.
The following code sample illustrates using Delete to remove NIS maps from a zone:
... 'Identify the zone you want to work with set zone = cims.GetZone("sample.com/centrify/zones/default") 'Create the Store object Set store = CreateObject("Centrify.DirectControl.Nis.Store") 'Attach to the target zone 'Provide the path to the zone and user credentials (username and 'password). store.Attach zone.ADsPath, "jae.smith", "pas$w0rd" 'Use store.Delete to delete the generic map named "generic map" store.Delete "generic map" wScript.Echo "NIS map deleted." ...